1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

subdomain setup

Discussion in 'Plesk for Linux - 8.x and Older' started by path2u, Dec 14, 2005.

  1. path2u

    path2u Guest

    0
     
  2. jlschwab

    jlschwab Guest

    0
     
    I'm sorry but you can not do such a format, thats just not possible, a subdomain has to be subdomain.therealdomain.tld. That's what subdomain means...

    Please clarify?
     
  3. path2u

    path2u Guest

    0
     
    subdomains

    I am in process of changing server hosts ... the current server host is RHEL running Ensim control panel, and my new server is RHEL running Plesk. On my current server, my subdomains are accessible via http://domain/subdomain as long as I do not have folder subdomain in docroot folder. I am not sure if this was special setup they assisted in, but now all my links to a very large website are coded that way, and it will be a lot of work to find and replace them all.
    I am hoping to set that up on new server as well.
    Thanks for quick reply,
    Jesse
     
  4. bandurao

    bandurao Guest

    0
     
    Hello,


    I know how to do this, if you have not finished this yet let me know.


    Feel free to contact me for issues and contracts at bandurao@gmail.com

    Thanks,
    Bandurao.
    System Administrator.
     
  5. path2u

    path2u Guest

    0
     
    Subdomain Help

    Yes, I have not set this up yet and would like any help you could provide.
    Do you want me to contact you directly, or will you just post here ??
    Thanks again,
    Jesse
     
  6. ShadowMan@

    ShadowMan@ Guest

    0
     
    Path2U - You can do this in the domain's vhost.conf file:

    Code:
    Alias   /plesksub   /home/httpd/vhosts/example.com/subdomains/plesksub/httpdocs
    On newer fresh Plesk installs, the domain's root may be /var/www/vhosts/...

    Then make sure you have your site files in the httpdocs directory and you should be good to go.

    Notes: By default, Plesk does not automatically create the vhost.conf file, so you may have to create it. Then run the following command:

    /usr/local/psa/admin/bin/websrvmng -u --vhost-name=example.com

    Then restart apache manually.

    This also assumes you create your subdomains using the Plesk GUI, not a 3rd party utility such as 4PSA's utilities (which stores subdomains in a different location.
     
  7. path2u

    path2u Guest

    0
     
    subdomains

    I have created all my subdomains with the Plesk control panel and they are in the default ... /var/www/vhosts/domain.com/subdomains/subdomain/httpdocs
    If I understand correctly ... I run this command:
    /usr/local/psa/admin/bin/websrvmng -u --vhost-name=example.com
    to generate a vhost.conf file if it does not already exist.
    Then I add the following line to the vhost.conf:
    Alias /plesksub /home/httpd/vhosts/example.com/subdomains/plesksub/httpdocs
    Just making sure I understand, as I am not yet very familiar with Plesk or these setup procedures.
    Thanks a ton,
    Jesse
     
  8. ShadowMan@

    ShadowMan@ Guest

    0
     
    Other way around. First you must create the file and put the Alias statement into it, then run the websrvmng command which will integrate the changes in the vhost.conf file into the domain's apache config files. Then restart Apache service.
     
  9. bandurao

    bandurao Guest

    0
     
    Can I have your chat ID so that I can tell you how to do this, live.
     
  10. jlschwab

    jlschwab Guest

    0
     
Loading...