Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Apache proxy and WebLogic redirects

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have been running an Apache server as a proxy for a WebLogic server that hosts a JSP/Servlet application. Of course, the first one is on a public address since the second one is on a local/private address.

In order to rewrite the requests I am using:
..................
RewriteEngine On
RewriteRule ^/AppName(.*)$ [P,L]
..................
in my httpd.conf file.

When I am invoking the static pages (JSP or HTML) everything is just fine. But, if the JSP page contains a response.sendRedirect()
the browser will show a "The page cannot be displayed" error.
I tried to search the log files (from apache or weblogic) for hints of what may go wrong but nothing.

I already tried to use:
.................
ProxyPassReverse /AppName/ ..................
to change the location in response objects, but still is not working

I think that the response object returned to the browser contains a malformed URL due to the Apache rewriting, since the web application works fine when tested from inside.

If there is anyone who encountered a similar problem I would really appreciate any advice.

Many thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top