• 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

vhost.conf ignored

DenniB

New Pleskian
Hi all,

i recently upgraded from plesk 10 to plesk 12.
After upgrading, the vhost.conf file for my subdomain is not working at all.

The strange thing is, if I use the plesk panel to edit http settings, it works.

So i thought that plesk 12 maybe creates a vhost.conf with these settings in another directory but I can't find any vhost.conf file with the content I added in the plesk panel.

Could somebody please help me to understand this?

The conf path is (or should be):
/var/www/vhosts/DOMAIN/subdomains/SUB/conf/vhost.conf


Thanks in advance.
 
The actual path for the conf - files in 12.0.1 is:

/var/www/vhosts/system/DOMAIN_OR_SUBDOMAIN/conf/

You can always try to reconfigure your config - files with:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
or
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain YOURDOMAIN.COM


You might try as well to update the vhost structure over the command line with:

/usr/local/psa/admin/sbin/update-vhosts-structure

to see all commands for this script, please use: update-vhosts-structure --help
 
Thank you so much, this helps a lot.

The last thing that i do not understand is why plesk is ignoring my vhost.conf

I am not sure about this update-vhosts-structure command.
The help (--help) is really minimalistic..
Would this command override vhost.conf's already available ?

The conf path "/var/www/vhosts/DOMAIN/subdomains/SUB/conf/vhost.conf" did work on plesk 10.

The path is listed here :"/var/www/vhosts/DOMAIN/conf/last_httpd.include"....

any idea?
 
Hi DenniB,

did you see the difference between your old 10-Plesk-version path and the new 12-Plesk-version one? Plesk 12 is not configured to look for additional configuration files on the old path.
 
Back
Top