Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way I can actually tell if a SetEnv variable is being loaded by Apache?

I am trying to set:

SetEnv proxy-sendchunked 1

However have no way in telling if it is actually being set. Is there any logging that can be enabled to show it is being picked up?

share|improve this question
up vote 2 down vote accepted

Environment variables can be logged in the access log using the LogFormat option %e.

Put "%{VAR}e" as an additional argument to LogFormat directive in your configuration file. Then in access log, value of VAR will be placed in each log.

share|improve this answer
Thank you, can you provide an example? Many thanks, Ben. – Ben Nov 28 '11 at 11:14
I have updated the answer. – Sachin Divekar Nov 28 '11 at 11:57
Superb, thank you! – Ben Nov 28 '11 at 12:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.