I recently found myself having to make some php configuration changes which are specific to a particular subdomain on my Mediatemple DV web host, and found that yet another part of subdomain setup is mildly broken out-of-the-box. This is the sort of thing that most people who need it can probably figure out for themselves, but I'm posting the solution hoping someone will find it useful.
On my DV the domain specific apache configuration is located in /var/www/vhosts/domain-name/conf/, where domain-name is of course replaced by your actual domain name. In this directory you should find at least httpd.include, and possibly vhost.conf as well. If you open httpd.include you'll find the following alarming warning at the top:
# ATTENTION! # DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK # FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM # MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE # FOLLOWING FILE(S): # /var/www/vhosts/domain-name/conf/vhost.conf # /var/www/vhosts/domain-name/conf/vhost_ssl.conf # /var/www/vhosts/domain-name/subdomains/subdomain-name/conf/vhost.conf
Well enough. But it's broken out of the box: httpd.include won't tell
apache to look for the
In my case I had to add that Include line; I inserted it just before the end of the relevant VirtualHost section. Remember to replace domain-name with your actual domain name, and subdomain-name with the subdomain you're configuring for. Then just restart apache and whatever directives you have in vhost.conf should apply. Good luck!