httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: an Include for <Directory contents
Date Thu, 07 Feb 2002 01:31:28 GMT
On Wed, 6 Feb 2002, David R Boldt wrote:

> Given this environment is very difficult to make modifications to
> our intranet definition.  I was excited and then disappointed with
> the Include statement  ... as it promised to let me place this
> information in a separate file, which I might then have some hope
> of being able to update.  Alas it can't be used in the exact context
> that I need it..  inside of <Directory statements.
>

There has long been a strong resistance to "creaping featurism" in the
config language.  The developers see no reason to make the config language
turing-complete when a simple preprocessor will do the job.

The standard advice (and I consider it good advice) is to use a
preprocessor like m4.  This is designed to do exactly the job you want,
without adding extra complexity to Apache.  If you don't like m4, there
are plenty of other alternatives, ranging from cpp to creative use of
sed/awk/cat.

If you really need something built-in to apache, several people have
written extensions.  I don't think mod_define does what you want, but
"acpp" might:
http://www.apache.org/dist/httpd/contrib/misc/

I have no idea if it will compile with the current code base.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message