• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Apache Subdomain Config

davorg

Basic Pleskian
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.

Cheers,

Dave...
 
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-all
or
/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.

Dave...
 
Back
Top