1
vote
0answers
431 views

Is there if-then-else logic available for Apache environment variables?

I'm trying to set various types of mobile-specific configuration based on environment variables. The psudocode (psudoconfig) I was trying to do was something like: <if environment variable = ...
1
vote
1answer
1k views

How can I use SetEnvIf to set a variable based on the Http Host?

I'm trying to set a variable on Apache ENV=DEV if the http host is the dev URL or ENV=PRD if the http host is the prd URL and then use $_SERVER['ENV'] to create some logic branches So far none ...