Apache is acting as a reverse proxy in my setup.
The application server running on port 8081 requires a valid
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 </Proxy> SSLEngine On SSLCertificateFile /etc/apache2/ssl/apache.pem ProxyPreserveHost On ProxyRequests Off ProxyPass / http://mydomain.com:8081/ ProxyPassReverse / http://mydomain.com:8081/ </VirtualHost>
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.