• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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