Re: [users@httpd] Conf file macros?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The module module_env is used to define variables in the 
config file, or pass variables from the shell to the apache 
environment.

# define the environment variable
SetEnv SrvRoot /usr/local/apache2

I'm not sure of the syntax to use the variable though. 
As you say the docs are a bit vague to say the least!

Regards - Keith


On Thu, 12 Jan 2006, David Salisbury wrote:

> To: users@xxxxxxxxxxxxxxxx
> From: David Salisbury <salisbury@xxxxxxxxx>
> Subject: [users@httpd] Conf file macros?
> 
> 
> 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.
> 
> -Dave

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux