Hi,
I am using an apache setup as a reverse proxy to a backend server.
...
<VirtualHost *>
ServerName foolocal.com
ProxyPass / http://fooremote.com/
ProxyPassReverse / http://fooremote.com/
...
The above setup is working fine for most pages, except a few servlets which are
using 302 Redirects.
There is a servlet in the backend system, which is setting a redirect header
like below:
HTTP/1.1 302 Moved Temporarily
Location: http://fooremote.com:80/abc.jsp
The ReverseProxy is not able to reset the value of the Location header in this
case.
I tried the below option but it did not work. The original header is not
modified by the below line.
Header always edit Location ^http://fooremote.com:80 http://foolocal.com
I am not sure whether the issue is with the Location header overwriting, or
whether it is because of the :80 being appended in the URL in the redirection
header.
Need your help in solving this.
______________________________
Sudip Kumar Bhattacharya
This e-mail (and any attachments), is confidential and may be privileged. It
may be read, copied and used only
by intended recipients. Unauthorized access to this e-mail (or attachments) and
disclosure or copying of its
contents or any action taken in reliance on it is unlawful. Unintended
recipients must notify the sender immediately
by e-mail/phone & delete it from their system without making any copies or
disclosing it to a third person.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]