• 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.

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