Written by:David Aldridge9/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.
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com
/usr/local/psa/admin/sbin/websrvmng -a
0 comment(s) so far...