Include "override" config at the end of httpd.conf

kevinbentlage

Verified User
Joined
Jul 15, 2013
Messages
13
It would be nice to have an "httpd-overrides.conf" include at the end of httpd.conf.

We have several settings, for example SSL chipers and several headers that we force. And some files are overwritten by DirectAdmin custombuild.

Is it possibible to create an untouched empty file "httpd-overrides.conf" and include this at the end of httpd.conf?
 
Hello,

The file /etc/httpd/conf/extra/httpd-includes.conf which is recommended in id=351 is not suitable here, as it's get included before many other files:


Code:
Include /etc/httpd/conf/extra/httpd-phpmodules.conf
[B]Include conf/extra/httpd-includes.conf[/B]
Include conf/extra/httpd-directories.conf
Include conf/extra/httpd-nginx.conf
Include conf/extra/httpd-mpm.conf
Include conf/extra/httpd-multilang-errordoc.conf
Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-languages.conf
Include conf/extra/httpd-info.conf
Include conf/extra/httpd-suphp.conf
Include conf/extra/httpd-dav.conf
Include conf/extra/httpd-default.conf
Include conf/extra/httpd-ssl.conf
Include conf/extra/httpd-deflate.conf
Include conf/extra/httpd-php-handlers.conf
Include conf/extra/httpd-vhosts.conf
Include conf/extra/directadmin-vhosts.conf

Using chattr in daily practice is not the best solution, unless you do it on your own and single server.

So I'd guess we could have conf/extra/httpd-overrides.conf at the very bottom of the file. I like the idea.
 
Back
Top