• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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