Wow. I spent about a week trying to find out why my script is not working. All the time I was trying out different variables/headers and thinking that my regex might be the cause of the issues. Thanks a lot Eric for pointing out the issue. This should be documented clearly in the apache manuals for SetEnv and SetEnvIf. -----Original Message----- From: Eric Covener [mailto:covener@xxxxxxxxx] Sent: Friday, October 26, 2012 9:58 PM To: users@xxxxxxxxxxxxxxxx Subject: Re: How to debug SetEnvIfNoCase command? On Fri, Oct 26, 2012 at 12:10 PM, Bhattacharya, Sudip <sudip.bhattacharya@xxxxxxxxxxx> wrote: > Sorry, could not get your statement. > Are you saying that SetEnvIf is executed before SetEnv even if the SetEnv statement is coming before SetEnvIf in the configuration? Yes. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx