Jump to content

Possible to use %{} vars with SetEnv?


daledude

Recommended Posts

Is it, some how, possible to set an environment variable with an existing variable?

 

What Im trying to do is per request:

SetEnv AWSTATS_FORCE_CONFIG %{SERVER_NAME}

 

Which doesnt work. I'd rather not have to hard code that SetEnv line inside each VirtualHost. Instead would like to set a global <Location> with something that would AWSTATS_FORCE_CONFIG to the server name on each request.

 

Some how possible?

Link to comment
https://forums.phpfreaks.com/topic/39756-possible-to-use-vars-with-setenv/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.