Re: mod_proxy and .htaccess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 17, 2011 at 12:16 PM, --[ UxBoD ]-- <uxbod@xxxxxxxxxxxx> wrote:
> Hi,
> I have been experimenting with Apache running on port 80 and then proxying
> to a second instance on 8080; the second instance being chrooted. All is
> working great except .htaccess due to it being processed by the second httpd
> instance which sees all connections coming from 127.0.0.1. Is there any way
> around this or should I move the restrictions directly into the httpd.conf ?
> --
> Thanks, Phil
>
>

Thats because the connections *do* come from 127.0.0.1 . There are a
number of 3rd party modules (well, mod_remoteip is apache 2.3+) that
will update the apache request so that it appears to come from the IP
that the first apache puts in X-Forwarded-For.

mod_rpaf2
mod_remoteip

Cheers

Tom

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux