Plesk httpd.include files for httpd.conf

Published by

Posted on February 24, 2008

Customizable httpd.include per domain

In Plesk each domain has virtual hosts configuration stored in a separate file:


This file is overwritten each time the virtual host configuration is changed, thus any manual alterations made to the file are discarded. To use custom directives or redefine those inserted by Plesk, you need to create the files vhost.conf and/or vhost_ssl.conf with necessary directives in the directory /home/httpd/vhosts/<domain-name>/conf/

If any (or both) of these files exist by the time the main configuration file is generated, Plesk inserts the appropriate directive Include /home/httpd/vhosts/<domain-name>/conf/vhost.conf or Include /home/httpd/vhosts/<domain-name>/conf/vhost_ssl.conf into the HTTP and/or HTTPS virtual host context respectively.

For security reasons, only root can create the vhost.conf and vhost_ssl.conf files.

For the changes to take effect, you need to run the following: or restart httpd

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain_name>

or windows
In Windows command prompt:

cd c:\Program Files\SWSoft\Plesk\admin\bin
websrvmng –reconfigure-vhost –