Apache mod_setenvif Server_Addr
Posted
by
user18330
on Server Fault
See other posts from Server Fault
or by user18330
Published on 2010-10-21T17:55:45Z
Indexed on
2011/03/02
7:26 UTC
Read the original article
Hit count: 232
apache
I have an Apache server in a DMZ, reachaable on the LAN from 192.168.1.1, public 123.456.789.123. I'm trying to get it to require authentication if the inbound hits are coming from the public side. This doesn't seem to work:
SetEnvIf SERVER_ADDR 123.456.789.123 local_nic=1
<Location /junk> Order Deny,Allow AuthName "Access required" AuthType Basic AuthUserFile /etc/httpd/conf/htpasswd Require valid-user </Location>
What am I doing wrong?
Sorry, HTML tags were wiping out my Apache directives.
© Server Fault or respective owner