• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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