Created
September 14, 2012 11:00
Virtual Host configuration for Rails with NTLM using mod_auth_sspi. <%= request.env["HTTP_X_FORWARDED_USER"] %> # Gets Username
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName cagv11 | |
DocumentRoot "C:/web/testing/public" | |
ProxyPass / http://localhost:3000/ | |
ProxyPassReverse / http://localhost:3000/ | |
ProxyPreserveHost On | |
<Proxy *> | |
AuthName "Iconica" | |
AuthType SSPI | |
SSPIAuth On | |
SSPIAuthoritative On | |
SSPIOmitDomain On | |
require valid-user | |
RewriteEngine On | |
RewriteCond %{LA-U:REMOTE_USER} (.+) | |
RewriteRule . - [E=RU:%1] | |
RequestHeader add X-Forwarded-User %{RU}e | |
</Proxy> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment