Reverse Proxy REMOTE_USER

Topics: Reverse Proxy, Rules
Feb 22, 2011 at 8:18 PM

Hi.

I'm using a simple reverse proxy rule



RewriteRule ^/internal/(.*)   http://10.0.10.2:8000/$1   [P]

 

The IIS has windows integrated authentication. People have to use their AD creds to access the site.

 

Can I get the username from some header or is this possible?

 

 

Apr 28, 2011 at 3:28 PM

I have NTLM set up on both sides of the proxy (IIS on one and Apache on the other), and it seems to pass the auth details along seamlessly, without any extra work on my part.  I get the username via the CGI variable REMOTE_USER.