Hi André, Thank you very much for your time and explanation. For what it's worth, I have tried inserting a RewriteCond to make sure the proxy only occurs when REMOTE_USER is set. This cleaned up the rewrite.log file a bit, but the script is still not able to see REMOTE_USER. Here is our updated configuration and rewrite.log. ------ ####### GlassFish proxy ProxyPreserveHost on RewriteEngine on RewriteCond %{LA-U:REMOTE_USER} (.+) RewriteLog /var/log/httpd/rewrite.logRewriteLogLevel 9 RequestHeader Set Proxy-keysize 512 RequestHeader Set Proxy-ip %{REMOTE_ADDR}e RequestHeader Set Host ourserver.com:443 RequestHeader set REMOTE_USER %{LA-U:REMOTE_USER}e RewriteRule ^/test$ /test/ [R,L] RewriteRule ^/test/(.*) http://localhost/cgi-bin/test/$1 [P,L,E=REMOTE_USER:%{LA-U:REMOTE_USER}] <Location "/test"> order deny,allow deny from all AuthType KerberosV5 AuthName "kerberos authentication" Satisfy any require valid-user </Location> ------ ... [rid#8e23fc0/initial] (2) init rewrite engine with requested uri /test/remote.cgi ... [rid#8e23fc0/initial] (3) applying pattern '^/test$' to uri '/test/remote.cgi' ... [rid#8e23fc0/initial] (3) applying pattern '^/test/(.*)' to uri '/test/remote.cgi' ... [rid#8e23fc0/initial] (2) rewrite /test/remote.cgi -> http://localhost/cgi-bin/test/remote.cgi ... [rid#8e38648/subreq] (2) init rewrite engine with requested uri /test/remote.cgi ... [rid#8e38648/subreq] (1) pass through /test/remote.cgi ... [rid#8e23fc0/initial] (5) lookahead: path=/test/remote.cgi var=REMOTE_USER -> val=dab66 ... [rid#8e23fc0/initial] (5) setting env variable 'REMOTE_USER' to 'dab66' ... [rid#8e23fc0/initial] (2) forcing proxy-throughput with http://localhost/cgi-bin/test/remote.cgi ... [rid#8e23fc0/initial] (1) go-ahead with proxy request proxy:http://localhost/cgi-bin/test/remote.cgi [OK] ------ Our end goal is to proxy from the Apache server to a GlassFish Enterprise Server. Just for reference, here is the rewrite.log for a request that's proxied to a GlassFish Web Application. ------ ... [rid#8e23fc8/initial] (2) init rewrite engine with requested uri /HelloWeb/UserServlet ... [rid#8e23fc8/initial] (3) applying pattern '^/HelloWeb$' to uri '/HelloWeb/UserServlet' ... [rid#8e23fc8/initial] (3) applying pattern '^/HelloWeb/(.*)' to uri '/HelloWeb/UserServlet' ... [rid#8e23fc8/initial] (2) rewrite /HelloWeb/UserServlet -> http://localhost:38080/HelloWeb/UserServlet ... [rid#8e1ffb8/subreq] (2) init rewrite engine with requested uri /HelloWeb/UserServlet ... [rid#8e1ffb8/subreq] (1) pass through /HelloWeb/UserServlet ... [rid#8e23fc8/initial] (5) lookahead: path=/HelloWeb/UserServlet var=REMOTE_USER -> val=dab66 ... [rid#8e23fc8/initial] (5) setting env variable 'REMOTE_USER' to 'dab66' ... [rid#8e23fc8/initial] (2) forcing proxy-throughput with http://localhost:38080/HelloWeb/UserServlet ... [rid#8e23fc8/initial] (1) go-ahead with proxy request proxy:http://localhost:38080/HelloWeb/UserServlet [OK] ------ Any suggestions would be greatly appreciated. Thank you again, Devin On Oct 28, 2009, at 11:15 AM, André Warnier wrote:
|