Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.