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

Need domain.com to docroot subdomain in vhost.conf

Discussion in 'Plesk for Linux - 8.x and Older' started by sector29, Aug 27, 2005.

  1. sector29

    sector29 Guest

    0
     
    Hello,

    How do I change vhost.conf so that domain.com/httpdocs, www.domain.com/httpdocs and IP/httpdocs point to subdomain.domain.com/httpdocs.

    I've tried to insert DocumentRoot into vhost.conf but it doesnt work for me (yet?).

    I intend to use the original domain.com/httpdocs as a storage area for symlinking.

    currently vhost looks like most of the posts i've read
    <Directory /home/httpd/vhosts/<domain>/httpdocs>
    php_admin_value open_basedir /home/httpd/vhosts/<domain>/httpdocs
    php_admin_value safe_mode 0
    php_admin_value max_execution_time 6000
    </Directory>

    Also, does "safe_mode 0" turn off safe_mode? How is it turned off for a specific domain.
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Yes it turns off safe mode. When you put those statements/directives into a vhost.conf file for a given domain, it will affect *that* domain.

    After making changes to vhost.conf, you must remember to do the following commands at the SSH shell prompt:

    /usr/local/psa/admin/bin/websrvmng -u --vhost-name=domain.com
    service httpd restart

    Note: Replace 'domain.com' with the name of the domain you are reconfiguring. There are many ways of restarting httpd/Apache, so depending on your OS that command may be a bit different.

    For your other question 'How do I change vhost.conf so that domain.com/httpdocs, www.domain.com/httpdocs and IP/httpdocs point to subdomain.domain.com/httpdocs.' This would be done using RewriteCond and RewriteRule directives in the vhost.conf for the domains you wish to redirect. There are many recent posts where I have given examples.
     
Loading...