• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.

Subdomain DocumentRoot

AlexanderPolizu

New Pleskian
Hi Guys,

It's possible to change the subdomain DocumentRoot to an existing document outside of his home directory? For example I want to change the docroot for the test.sstest.com to a directory owned by the primary domain sstest.com

/var/www/vhosts/test.sstest.com/httpdocs/ to /var/www/vhosts/sstest.com/httpdocs/somethingelse.

Thank you.
 
I've made the changes and now it's trying to download a file when accessing the website

# cat /var/www/vhosts/sstest.test.com/conf/vhost.conf
DocumentRoot /var/www/vhosts/test.com/httpdocs/payment
<Directory /var/www/vhosts/test.com/httpdocs/payment>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/test.com/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/test.com/httpdocs:/tmp"
</IfModule>
Options -Includes -ExecCGI
</Directory>

Do you know why it goes for a download instead of showing the webpage?

Thank you for the link, Igor. I will continue to investigate.
 
Just enable php for that subdomain name through the control panel it self -> websites and domains -> click on the domain ->
 
Back
Top