Apache Custom Headers with ReverseProxy

RJLemon
RJLemon used Ask the Experts™
on
I am trying to create a custom header for all sites served by an Apache server

Header set X-UA-Compatible "IE=EmulateIE7"

I have placed this in the .htaccess file and the <Directory /> tag of the httpd.conf file.

It shows up for all sites served from the apache server /rontest.html but for /index.html which does a redirect to /otherserver which goes out through a proxy pass to http://localhost:8080/mainsite (this is running under TomCat) the custom header does not come through.

Is there something else I need to do or does this just not work?

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2008
Commented:
> I have placed this in the .htaccess file and the <Directory /> tag of the httpd.conf file.

Place it into the main server config (i.e. httpd.conf, outsitde of <Directory >). Then, you can remove other occurrences because defining it multiple times is not necessary.

Author

Commented:
Thanks.  Worked great.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial