httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joost de Heer <>
Subject Re: [users@httpd] ProxyPass and remote ip-addresses
Date Sun, 28 Nov 2010 09:32:16 GMT
On 11/28/2010 12:50 AM, Lars Nielsen wrote:
> Hi there,
> I have a setup with 2 servers where the first one works as a proxy to
> the second.
> On my proxy server i have this in apache's config:
> <VirtualHost *:80>
>          ServerName
>          ServerAlias
>          ProxyPreserveHost On
>          ProxyPass /
>          ProxyPassReverse /
> </VirtualHost>
> and the proxy works fine and I can see the site from the internet. My
> problem is that in the access log file for the site it puts my proxy's
> IP-address in as the remote ip in stead of the original users ip.
> How can I solve this so the users ip is written in the logfile?

This is normal behaviour: the backend server only sees a connection from the 
reverse proxy, since the original connection is terminated at the reverse proxy.

To solve this, see (the 
X-forwarded-for header).


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message