cPanel & WHM Version 94 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 8 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.


IT ALSO MAKES YOUR WEB SITES RUN MUCH MUCH FASTER!!!!


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


My VPS uses the following files:


/usr/local/apache/conf/userdata:


    -rw-r--r-- 1 root root 4149 Feb 9 08:43 bestwebs.org

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

    -rw-r--r-- 1 root root 838 Feb 25 2012 ludaweb.com

    -rw-r--r-- 1 root root 824 Jun 22 2012 org-date.com

    -rw-r--r-- 1 root root 14467 Feb 9 08:42 packcat.org

    -rw-r--r-- 1 root root 852 Feb 25 2012 perfectflooring.net

    -rw-r--r-- 1 root root 5110 Feb 25 2012 rearsconsulting.com

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

    -rw-r--r-- 1 root root 844 Feb 25 2012 vitalya.com

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