Apache Subdomain Config
I've used Plesk for many years on various versions of Fedora and Centos. I'm just setting up a new server that's running 10.4.4 Update #9 on Centos 6 and I'm getting confused by the way that Apache subdomains have changed.
I know that the directory structure has changed. And I think I understand how that now works. But I can't see where the actual Apache configuration for subdomains is written. Under older versions of Plesk all of the virtual hosts would be configured in the http.include file that is in ~user/conf. But having set up a number of subdomains on this new version, nothing has been added to the included file.
The subdomains are all working ok, but I need to do a few manual tweaks to their configuration. Things that I can't do with .htaccess files. I've poked around some obvious places on the filesystem, but I can't find them.
I'm sure the files are there, but I'm just being a bit thick.
Any help would be much appreciated.
In /var/www/vhosts there is now a "vhost" for all subdomains aswell, for example /var/www/vhosts/test.example.com/.
These directories contain a directory "conf" which has the httpd.include's. You should not edit the httpd.include, but create a file called vhost.conf if it does not exist already, and place your configuration in that file.
After making changes to the vhost.conf file you have to reload the configuration with one of the following commands:
/usr/local/psa/admin/bin/httpdmng --reconfigure-domain <domain_name>
For the second command, I'm not sure if you have to actually use the full domain name, or the actual subdomain name.
That's great. Looks like my job will be even easier than I hoped. Thanks for your help.