SetEnvIf - IIS 8.5
4 posts
• Page 1 of 1
- lawyercentral
- Posts: 28
- Joined: 16 May 2013, 13:13
SetEnvIf - IIS 8.5
Having difficultly using the SetEnvIf command in IIS 8.5 (Windows Server 2012 R2). Wondering if it's a bug, because it runs fine on my dev box, which is running IIS 7.
Some basic code, which works on dev, just does nothing on production:
My ultimate goal is actually to rewrite REMOTE_ADDR and REMOTE_HOST with an X-Forwarded-For IP.
Any insights would be greatly appreciated!
Some basic code, which works on dev, just does nothing on production:
- Code: Select all
RewriteEngine On
RewriteBase
SetEnvIf REMOTE_ADDR (.+) REMOTE_ADDR='127.0.0.1'
My ultimate goal is actually to rewrite REMOTE_ADDR and REMOTE_HOST with an X-Forwarded-For IP.
Any insights would be greatly appreciated!
Re: SetEnvIf - IIS 8.5
Hello,
Please enable logging in httpd.conf by putting
LogLevel debug
and check error.log for related messages.
Also please clarify if you get any error with IIS8.5?
Please enable logging in httpd.conf by putting
LogLevel debug
and check error.log for related messages.
Also please clarify if you get any error with IIS8.5?
- lawyercentral
- Posts: 28
- Joined: 16 May 2013, 13:13
Re: SetEnvIf - IIS 8.5
Thanks for the response.
There is no public error returned in IIS 8.5.
I'll enable debugging and provide the logs.
Is there a way to enable debugging only for my IP?
Thanks!
There is no public error returned in IIS 8.5.
I'll enable debugging and provide the logs.
Is there a way to enable debugging only for my IP?
Thanks!
Re: SetEnvIf - IIS 8.5
Hello,
>Is there a way to enable debugging only for my IP?
If you mean logging in Ape, then unfortunately you cannot customize it - it is either enabled or disabled.
Please provide the error.log which I asked you before.
Can you also clarify why you are trying to change the REMOTE_ADDR variable?
>Is there a way to enable debugging only for my IP?
If you mean logging in Ape, then unfortunately you cannot customize it - it is either enabled or disabled.
Please provide the error.log which I asked you before.
Can you also clarify why you are trying to change the REMOTE_ADDR variable?
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests