View Full Version : Best Place for Apache Tweaks
IT_Architect
04-08-2009, 08:54 AM
Where is the best place for Apache Tweaks?
In the httpd.conf there is the area barred off by DirectAdmin. It does the includes, mostly from extras folder, which I'm guessing they maintain too. So put them in the httpd.conf beneath the area roped off by DirectAdmin to override the defaults read?
Anyone with a better idea?
guidob
04-09-2009, 04:31 AM
Also interested it in this. Would be nice to have a file included that doesn't get rewritten for tweaking.
tillo
04-09-2009, 04:36 AM
I guess the "correct" method would be to use httpd-includes.conf, for example:
$ cat /etc/httpd/conf/extra/httpd-includes.conf
# All FastCGI directives
Include conf/extra/httpd-fcgi.conf
# All forwarding proxy directives
Include conf/extra/httpd-proxy.conf
# All SVN directives
Include conf/extra/httpd-svn.conf
# All ModSecurity directives
Include conf/extra/httpd-sec.conf
That file, and all the other files I created, never get deleted or modified by DA or CustomBuild.
smtalk
04-09-2009, 04:45 AM
tillo, yes you are right :) I made this file exactly for custom implementations :)
IT_Architect
04-09-2009, 06:58 AM
I guess the "correct" method would be to use httpd-includes.conf
tillo, yes you are right :) I made this file exactly for custom implementations :)Perfect! I wondered what the empty file was out there for. I theorized by the name that somehow it would be auto-populated for DA for modules.:D Is that documented somewhere? It will be with what I'm writing if it isn't. Let me guess, it's also editable from somewhere in the admin section of the CP?
IT_Architect
05-21-2009, 10:16 AM
The comment in httpd.conf for httpd-includes.conf is wrong then. It reads:
# All the other includes needed by the custombuild script
It should read:
# For user configurations not maintained by DirectAdmin. Empty by default.
DirectAdmin Support
05-21-2009, 02:57 PM
Thanks, I've changed the wording.
John
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.