Apache2.conf - variables inside configuration file?

Alles, was den Apache betrifft, kann hier besprochen werden.

Apache2.conf - variables inside configuration file?

Postby keksinat0r » 10. April 2008 17:54

Hi,
Is it possible to use variables inside the Apache2 configuration file?
For example:

define var = "value"
DocumentRoot ${var}/sub/directory/

This would be nice with "mass virtual hosting", because there you often have to write the same stuff ever and ever again...

Thanks
- keksinat0r :)
keksinat0r
 
Posts: 1
Joined: 10. April 2008 17:48

Postby Nobbie » 10. April 2008 19:09

No.

But there is instead a module suited very well for mass hosting, it is the module mod_vhost_alias. See http://httpd.apache.org/docs/trunk/mod/ ... alias.html for detailed information. It works very close to your needs.
Nobbie
 
Posts: 8778
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 3 guests