httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Holley <mhol...@byu.edu>
Subject Re: [users@httpd] Getting .htaccess to work
Date Tue, 25 May 2004 14:40:59 GMT
Yeah it works! Thanks for the help! Give it to Apple to take a standard 
and use it in a non-standard way. Thanks again.

On May 24, 2004, at 1:19 PM, Joshua Slive wrote:

>
> [Plain text, please.]
>
> On Mon, 24 May 2004, Mike Holley wrote:
>>         CustomLog "/var/log/httpd/access_log" "%{PC-Remote-Addr}i %l 
>> %u
>> %t \"%r\" %>s %b"
>
> Ah hah!  That PC-Remote-Addr thing is the clue we need.
>
> You are using an apache hidden behind some kind of proxy/accelerator. 
> I'll have to remember that Apple does that.
>
> This means that Apache doesn't see the client's IP address in the 
> normal places.  Instead, it sees the proxy's address, which is 
> probably your own computer.  This also means you can't do ordinary 
> Allow/Deny.  Instead, you can probably use something like
>
> SetEnvIf PC-Remote-Addr ^128\.187 good-guy
> Order Deny,Allow
> Deny from all
> Allow from env=good-guy
>
> I don't know of any easy way to match against byu.edu, since it is 
> unlikely that the proxy server is doing reverse lookups, and there is 
> no way to get SetEnvIf to do reverse lookups either.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message