Include Editor
I need to edit the httpd.conf file to include this data:
When reading the httpd.conf file it specificly states: DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES. I created another .conf file and placed it the directory suggested by the original httpd.conf file. However, after doing this easy apache is not able to run. After I remove the include file easy apache functions correctly. I would assume it would be better to use the WHM include editor to add the strings to the httpd.conf file, but I am unsure where to add the data so it would be specific to the subdomain that I am testing on. Which option should I use: Pre Main Include Pre Virtual Host Include or Post Virtual Host Include? :confused:
# Standard http port
NameVirtualHost *:80
ServerAdmin luser@domain.com
ServerName domain.com
DocumentRoot /site/
Order deny,allow
Deny from all
Order deny,allow
Deny from all
Order deny,allow
Deny from all
Order deny,allow
Deny from all
Order deny,allow
Deny from all
When reading the httpd.conf file it specificly states: DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES. I created another .conf file and placed it the directory suggested by the original httpd.conf file. However, after doing this easy apache is not able to run. After I remove the include file easy apache functions correctly. I would assume it would be better to use the WHM include editor to add the strings to the httpd.conf file, but I am unsure where to add the data so it would be specific to the subdomain that I am testing on. Which option should I use: Pre Main Include Pre Virtual Host Include or Post Virtual Host Include? :confused:
-
if this is going inside of an existing vhost block, simply uncomment the include line within the vhost in httpd.conf, create the include file, and put the configuration in there. In this specific case, the change will be preserved. 0 -
Sorry, thanks for the advice I'll give it a go shortly as I wrapped up in someting elese right now. Thanks again. :) 0
Please sign in to leave a comment.
Comments
3 comments