maunded
asked on
SetEnvIf Config for Proxy
Hi,
I have a proxy server which serves requests from my webservers, it adds a X-Forwarded-For header to each request.
I want to be able to not log requests which come from my internal network, eg 192.168.0.x
I have this line in my httpd.conf:
SetEnvIf X-Forwarded-For "^192\.168\.0\.[0-254]$" dontlog
and then in the virtual server config:
CustomLog "|/usr/local/apache2/bin/c ronolog /usr/local/apache2/logs/ac cess_%Y-%m -%d" "combined" env=!dontlog
Where am I going wrong?
Thanks!
D.
I have a proxy server which serves requests from my webservers, it adds a X-Forwarded-For header to each request.
I want to be able to not log requests which come from my internal network, eg 192.168.0.x
I have this line in my httpd.conf:
SetEnvIf X-Forwarded-For "^192\.168\.0\.[0-254]$" dontlog
and then in the virtual server config:
CustomLog "|/usr/local/apache2/bin/c
Where am I going wrong?
Thanks!
D.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER