Sep15

Written by:David Aldridge
9/15/2010 4:17 PM 

In dealing with a control panel system like plesk, you will find that you need to work around it.  To add directives to apache, you need to edit the specific vhost file for the domain.

In /var/www/vhosts/domain.com/conf you will find two files - httpd.include and vhost.conf.  httpd.include is maintained and updated by plesk itself and should not in general be edited.

vhost.conf is where you should place any custom apache directives that you want to use with the domain.

To tell plesk about the custom directives you then need to run:

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com

To rescan the vhost.conf files for all sites:

/usr/local/psa/admin/sbin/websrvmng -a

This will add in an include for the vhost.conf file to the httpd.include file.

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment  Cancel 
You must be logged in and have permission to create or edit a blog.