httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Salisbury" <salisb...@globe.gov>
Subject Re: [users@httpd] Conf file macros?
Date Fri, 13 Jan 2006 01:46:31 GMT
Thanks , one and all!

-Dave

----- Original Message ----- 
From: "Nick Kew" <nick@webthing.com>
To: <users@httpd.apache.org>
Sent: Thursday, January 12, 2006 6:31 PM
Subject: Re: [users@httpd] Conf file macros?


> On Thursday 12 January 2006 21:28, David Salisbury wrote:
>> Just wondering ( I don't see it in the docs ) if one can define "variables"
>> in the Apache conf. files.
>>
>> i.e. I have seen people write something along the lines of
>>
>> %{HTTP_REFERER}
>>
>> in their conf file.
>>
>> So..  is there any support for a sort of variable substitution within the
>> conf file.. e.g.
>>
>> %DIR=/usr/local/
>>
>> and then
>>
>> ServerRoot %{DIR}
>>
>> I'm doubting it but this would be nice.
> 
> The answer is "no, but".
> 
> There's no general support for that.  But certain modules, such as
> mod_rewrite, support variables in some of their httpd.conf directives.
> 
> You might want to look at the (third-party) mod_macro.
> 
> -- 
> Nick Kew
> 
> ---------------------------------------------------------------------
> 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
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
>


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message