Re: RE: Can you use variables inside a conf file?

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

 



On 25.01.2012 14:47, Desilets, Alain wrote:
	I use this syntax too, but I think it works for me only because of my	
	loading of a NON-STANDARD module, mod_define.

		http://people.apache.org/~rjung/mod_define/mod_define.html

It works for me and I don't have mod_define loaded.

Using an environment variable with the ${MYVAR} syntax works without mod_define. If you want to define the value of the variable inside the httpd configuration files, you would need mod_define.

Major difference: environment variables can't be changed with "apachectl restart" or "apachectl graceful", because in both cases the httpd parent process keept running and all child processes are forked from it with an unchanged environment.

If you define the variables inside the configuration and use the additional module, any changes to the definitions will become active by "apachectl restart" and "apachectl graceful".

Starting with the forthcoming Apache 2.4 defining variable inside the httpd configuration will become a core feature.

Regards,

Rainer


---------------------------------------------------------------------
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