Including other config files in httpd.conf?

michaelsanford

Translator, Web Developer
I am working on the 'definitive' AddDescription listing for Apache (httpd.conf) since I do a lot of development, sharing sources and all sorts of stuff with pure directory listings.

As this is going to be a rather large list, and I want to make it easier by having a file like AddDescription.conf and including it inline in httpd.conf, in the same way xinetd.conf lets you with "includedir /etc/xinetd.d"

Is there a similar directive for apache's config file, or am I stuck with copy-pasting it?

(Note my Apache version below.)
 
Just like the last directive that includes the user files.

Include /path/to/AddDescription.conf

Just make sure to put all the AddDescription directives inside <IfModule mod_autoindex.c> in the included file or else the directives won't be parsed correctly.
 
:cool: thanks DarkShadow.

I assume the /path/to/file is relative to httpd.conf, so plain 'Include add_description.conf' implies /private/etc/httpd/add_description.conf?
 
Durn, ya read it before I added my edit. Um...read the edit above. :D

And yes...but that's because by default Apache looks for files in /usr...compiled into it.
 
Back
Top