• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Need domain.com to docroot subdomain in vhost.conf

S

sector29

Guest
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.
 
Also, does "safe_mode 0" turn off safe_mode? How is it turned off for a specific domain.
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.
 
Back
Top