'Location:' HTTP header variable fixed incorrectly.
|Posted: Mon, 2007-02-19 20:58|
I get some problems with my gallery installation. I use Gallery 2.1 on Apache 2.0.59/FreeBSD 6.2 behind a Apache 1.3/mod_proxy/OpenBSD 3.9.
When I browse the site with my URL http://jlang.dyndns.org/gallery, this is working perfectly but when I try to reach it with another URL like http://test.xtra-net.be/cr200422001/gallery/ links are completely broken.
So after a little troubleshooting, I noticed Gallery2 inserts a 'Location' variable in the HTTP header and this is causing lots of problems because URL is moved to http://test.xtra-net.be/gallery/main.php.
After some research on Google I read that it is impossible to rewrite HTTP headers via mod_headers with mod_proxy. Both are incompatible. So I tried to remove this variable on my backend server but this is also not working.
So my question is how can I remove this line so I can browse my site correctly ?
I really would appreciate your help.