Take the 2-minute tour ×

Apache is acting as a reverse proxy in my setup. The application server running on port 8081 requires a valid Authorization header. The header is set by the client application. Apache seems to remove this header. It does not reach the server on port 8081.

<VirtualHost mydomain.com:443>
    ServerName mydomain.com
    ServerAlias www.mydomain.com

    <Proxy *>
            Order deny,allow
            Allow from all

    SSLEngine On
    SSLCertificateFile /etc/apache2/ssl/apache.pem

    ProxyPreserveHost On
    ProxyRequests Off
    ProxyPass / http://mydomain.com:8081/
    ProxyPassReverse / http://mydomain.com:8081/

To verify the server on port 8081 is working correctly, I added RequestHeader set Authorization "Basic XZY" to that configuration. In this case, the header is processed correctly by the server on port 8081.

I also connected to the server on port 8081 directly from the client to make sure the client is really setting the correct header. That also worked well.

share|improve this question

2 Answers 2

From the mod_proxy_html docs:



Is this what you are looking for?

share|improve this answer
up vote 0 down vote accepted

It turned out the the reason was a buggy client implementation.

share|improve this answer

Your Answer


