cPanel & WHM Version 114 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!
This object is in archive! 

Take advantage of Include Files in Apache httpd.conf

John Pierce shared this idea 11 years ago
Open Discussion

Please add a Var to httpd.conf ex.(IsIncludeDomainFiles) to indicate to the compiler that you are taking advantage of include files and not to clobber and rebuild into httpd.conf separately for each VirtualHost.

I use Include Files for my Virtual Hosts and httpd.conf ignores this when Apache is rebuilt.

This wastes tons of redundant code in httpd.conf, when it is easier to edit in include files.


Typically located at: /usr/local/apache/conf/userdata

My VPS uses the following files:


    -rw-r--r-- 1 root root 4149 Feb 9 08:43

    -rw-r--r-- 1 root root 2846 Feb 25 2012 index_options

    -rw-r--r-- 1 root root 838 Feb 25 2012

    -rw-r--r-- 1 root root 824 Jun 22 2012

    -rw-r--r-- 1 root root 14467 Feb 9 08:42

    -rw-r--r-- 1 root root 852 Feb 25 2012

    -rw-r--r-- 1 root root 5110 Feb 25 2012

    -rw-r--r-- 1 root root 0 Feb 25 2012 ssl_hosts

    -rw-r--r-- 1 root root 844 Feb 25 2012

In each domain include file, it includes all of the Virtual Host Name entries as well as the default. the other 2 include files configure the ssl_hosts and global index attributes.

Leave a Comment
Attach a file