• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

How to I change subdomain folder root to another subdomain ?

M

mickaelc

Guest
Hello,

I would like to change the root folder of my subdomain
/var/www/vhosts/$domain/subdomains/$subdomains1/httpdocs

to

/var/www/vhosts/$domain/subdomains/$subdomains2/httpdocs

I created vhost.conf file on the conf folder of my subdomain:
/var/www/vhosts/$domain/subdomains/$subdomains1/conf/vhost.conf

I Added that line:
DocumentRoot /var/www/vhosts/$domain/subdomains/$subdomains2/httpdocs

Last step is to reconfigure sites:
/usr/local/psa/admin/bin/websrvmng -a

When I enter the subdomains1 url, the browser just download a file.
I think Php is not working...

Any ideas ?

THanks
 
Back
Top