how to correctly configure Httpd basic auth for pass through proxy

Solution 1:

Well, after a few searches , I ran into something that had this added to this and it worked.

Added this to my httpd conf.

RequestHeader unset Authorization

my over all configuration.

<VirtualHost *:443>


    ServerName dev.mydomain.com
    RequestHeader unset Authorization


    ProxyPreserveHost On
    # setup the proxy

    ProxyRequests On
    ProxyVia On

<Proxy *>
    Order deny,allow
    Allow from all
    AuthType Basic
    AuthName "Password Required"
    AuthUserFile /etc/httpd/.magicalpasswdfile
    Require valid-user
</Proxy>


    ProxyPass /  http://dev.mydomain.com:8091/
    ProxyPassReverse /  http://dev.mydomain.com:8091/

#... SSL STUFF

</VirtualHost>