Dear Experts,
I'm trying to access a Tomcat server via Apache 2.4, configured as a reverse proxy server. All communication should take place using HTTPS.
On the reverse proxy I've installed the proper certificates and setup the forwarding to the tomcat server. However, whenever I try to access it, I get the following error message:
Code:
HTTP Status 500 - None of SP's internal[https://digsvw164.xxxxx.local:8100/dispatcher] and external address[[https://sb1web.xxxxx.nl:8100/dispatcher]] haven't been found in value of the "x-forwarded-for" header [172.29.38.10]
Where 172.29.38.10 is the IP address of the machine I'm coming from. If I access the tomcat server directly all is fine.
My apache configuration for this host is:
Code:
<VirtualHost *:8100>
ServerAdmin support@xxxxx.nl
ServerName sb1web.xxxxx.nl
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ALL:!aNULL:!eNULL:!SSLv2:!LOW:!EXP:!MD5:@STRENGTH
SSLCertificateFile /etc/apache2/ssl.crt/xxx_nl.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/xxx_nl.key
SSLCertificateChainFile /etc/apache2/ssl.crt/xxx_nl.ca-bundle
SSLProxyEngine On
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyRequests On
ProxyPreserveHost Off
ProxyBadHeader Ignore
ProxyPass / https://172.29.38.164:8100/ retry=0 timeout=5 KeepAlive=on
ProxyPassReverse / https://172.29.38.164:8100/
</VirtualHost>
I also tried fiddling around with directives like
Code:
RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy 172.29.38.0/24
in various forms, but all to no avail.
Any help would be greatly appriciated.