Web Hosting Talk







View Full Version : Custom apache configuration


spifster
11-16-2004, 04:55 AM
I'm trying to create some custom settings for our sites we host with PLESK 7 and Apache 2.0. To do this I'm editing the httpd.include file in the conf directory of each site I need to modify.

However at the beginning of the file there is a big warning. Telling me not to edit it, however as far as I know I can't add a second directive of the same <VirtualHost> directive.


# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /home/httpd/vhosts/eight-media.com/conf/vhost.conf
# /home/httpd/vhosts/eight-media.com/conf/vhost_ssl.conf
# /home/httpd/vhosts/eight-media.com/subdomains/<subdomain-name>/conf/vhost.conf



So if I have a <VirtualHost> directive in file httpd.include and the same <VirtualHost> directive with different settings in vhost.conf will the second one overwrite the first one completely or just add the extra configuration stuff.

The reason I have to do it this way is that PLESK overwrites these config files and everytime I have to reenter the changes.

Thx.

spifster
11-16-2004, 07:29 AM
I have figured it out I should just use the <Directory> directive.

Thanks anyway.