I lose some HTTP Headers contents when using mod_proxy on reverse proxy my internal tomcat server.
Here is the environment of my server:
- Apache2.2.10-2.24.5 on SuSE Linux 11 SP 1
- Tomcat 6.0
Apache listens on eth3, there are two configured network interfaces.
Any one know how to resolve this? I don't want to write a module to retain the headers, actually.
It works on previous version of Apache, like 2.2.10-2.18.
The lost headers are like "HTTP_X_CALLING_UP_ID" and "HTTP_X_BETYPE",etc. They are added by gateway.
The config of proxy in Apache's httpd.conf is
ProxyPass /foo http://192.168.1.100/bar ProxyPassReverse /foo http://192.168.1.100/bar
I can get the above headers in Apache, but lost while I try get them in Tomcat. And the exactly same configuration works on another test server running SuSE 11, but with one network interface card.
Should I upgrade the Apache to 2.2.24 the stable version?
I just browser my server using IP instead of domain name, and this time, I can get the lost headers. But, when I use the domain name, the headers lost again.
EDIT3 and SOLVED
Like @Krist van Besien said, the problem was introduced by the gateway. It did not transfer those http headers while user accessing my server by domain name.
Problem solved, and thanks.