I just installed a CentOS 6.4 server with Plesk 11. All sites are being served from /var/www/vhosts/default/htdocs/ even though I have configured them in Plesk to be served from different directories.
Consider siteA.com and siteB.com:
Domain name: siteA.com
Hosting type: Website
Document root: /siteA
Domain name: siteB.com
Hosting type: Website
Document root: /siteB
Now I go to the browser and call these addresses:
http://siteA.com/a.html
http://siteB.com/b.html
This is what I see in the Apache error_log:
script '/var/www/vhosts/default/htdocs/a.html' not found or unable to stat
script '/var/www/vhosts/default/htdocs/b.html' not found or unable to stat
However, if I create a file /var/www/vhosts/default/htdocs/c.html then it is served by both domain names! Do note additionally that there exist the directories /var/www/vhosts/siteA/ and /var/www/vhosts/siteB.
How can I fix Plesk such that it will server from /var/www/vhosts/siteA/httpdocs and /var/www/vhosts/siteB/httpdocs for the respective sites?
Consider siteA.com and siteB.com:
Domain name: siteA.com
Hosting type: Website
Document root: /siteA
Domain name: siteB.com
Hosting type: Website
Document root: /siteB
Now I go to the browser and call these addresses:
http://siteA.com/a.html
http://siteB.com/b.html
This is what I see in the Apache error_log:
script '/var/www/vhosts/default/htdocs/a.html' not found or unable to stat
script '/var/www/vhosts/default/htdocs/b.html' not found or unable to stat
However, if I create a file /var/www/vhosts/default/htdocs/c.html then it is served by both domain names! Do note additionally that there exist the directories /var/www/vhosts/siteA/ and /var/www/vhosts/siteB.
How can I fix Plesk such that it will server from /var/www/vhosts/siteA/httpdocs and /var/www/vhosts/siteB/httpdocs for the respective sites?