• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff 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