Domain level Apache configuration changes in Plesk

Posted June 1st, 2011 by bryanr

Plesk doesn’t provide an easy way to make virtualhost configuration changes in Apache.  When Plesk is installed the default Apache settings are left untouched.  Plesk adds a .conf file to Apache’s conf.d directory that specifies “Include” parameters for the each domain’s configuration file.  The Plesk config files are over written whenever changes are made via Plesk.  If you want to manually make any changes to the Apache configuration for a website, you need to create a vhost.conf file for it in the following directory:


This directory also contains the Apache config files for the domain (these files have names ending with httpd.include).  When the Plesk domain settings are re-saved, Plesk will include the vhost.conf file in the resulting domain httpd.include file.  The easiest way to force the addition of the vhost.conf parameters is to run the following command:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain <domain>

I recently had to change the loglevel to debug for a particular website and I was not allowed to add the variable to the site’s .htaccess file.  Adding a vhost.conf file that included “loglevel debug” did the trick.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>