PDA

View Full Version : Where does Plesk store VirtualHost info? not httpd.conf


danboarder
02-18-2008, 11:13 PM
I thought I could change the base directory for a virtualhost by editing /etc/httpd/conf/httpd.conf but it seems that this is a blank template file. No virtualhosts appear to be set here.

Anyone know where Plesk keeps all the settings for your domains, etc? I thought Plesk just edited the Apache config settings for you but now I'm not sure. Thanks for any help!

- Dan

danboarder
02-18-2008, 11:40 PM
OK I figured this out - in each new domain folder there is a /conf/httpd.include that has all the VirtualHost settings for that domain.

- Dan

danboarder
02-19-2008, 03:44 AM
Further on this, I found out I should not edit the httpd.include, as it's regenerated by Plesk and gets overwritten. I created a file called vhost.conf and put my additional Apache overrides in there. In this case I needed a directory Alias. After creating that file, I ran /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com to get Plesk to include my changes.

more help here http://www.gadberry.com/aaron/2006/02/09/plesk_vhost/