RE: [users@httpd] Get original user host name through reverse proxy

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

 



There was recently a thread on this subject on this list. The solution consisted of using a module that fiddles with the X-Forwarded-For header.

The exact name of the thread was "[users@httpd] reverse proxy - forward ip"

-ascs

-----Original Message-----
From: Mr Alex Eydelberg [mailto:eydelber@xxxxxxxxx] 
Sent: Monday, February 06, 2006 8:59 AM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] Get original user host name through reverse proxy

Hello all,

I have Apache running on an externally accessible IP on port 80 along with mod_proxy installed. I have it properly forwarding to an internal machine on the LAN running IIS.

The issue that I'm hoping to resolve is that when I check the user host name field in the request, it returns the IP address of the Apache server, instead of the original user that requested the proxied page.
Is there any way to not have Apache act "properly" in this case and just forward on the original requestor?

Here is my virtual host configuration (domain names
obfuscated):

<VirtualHost *>
    ServerName www.myserver.com
    ProxyPass / http://internal.myserver.com/
    ProxyPassReverse / http://internal.myserver.com/
    HostnameLookups On
    ErrorLog /local/logs/myserver-error_log
    CustomLog /local/logs/myserver-access_log combined
    Options FollowSymLinks ExecCGI Includes
    AddOutputFilter Includes .html
</VirtualHost>

Thank you!
Kevin

---------------------------------------------------------------------
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