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?

link|improve this question
feedback

1 Answer

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.

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

Your Answer

 
or
required, but never shown

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