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!
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!