Include files in Apache HTTP Server Version 2.2 httpd.conf
Solution 1:
Information on apache httpd.conf files can be found at here.
Some snippets have been copied from this website to ensure that the information is not lost if the link would deprecated:
Include /usr/local/apache2/conf/ssl.conf
Include /usr/local/apache2/conf/vhosts/*.conf
Relative paths:
Include conf/ssl.conf
Include conf/vhosts/*.conf
Wildcards:
Include conf/vhosts/*/*.conf
Solution 2:
I separate each virtual host into it's own vhost config file, that way you don't wind up searching through a giant document looking for one little directive. Similar to Quanta's post:
Include /etc/apache2/vhosts.d/*.conf
Just place it as the last line in your httpd.conf
then just split your single vhosts.conf into individual files for each domain, i.e.
domain1.conf
domain2.conf
domain3.conf
etc....
much easier to manage. -sean
Solution 3:
You can do it with Include directive:
Include /path/to/virtual_hosts.conf