logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Redirect from applet reverse proxy problem
Author
amangeles



Joined: 11 Aug 2007
Posts: 3

PostPosted: Tue 21 Aug '07 12:50    Post subject: Redirect from applet reverse proxy problem Reply with quote

Hi,

I have a reverse proxy setup like so:

client -> reverse proxy ( www.external.com ) -> www.internal.com

I'm also using mod_proxy_html for the reverse proxying.

One of the pages of www.internal.com contains an applet that performs some process and would later call appletContext.showDocument(url,"content") to redirect to another page. The url is of the form http://www.internal.com/mycontext/somepage.html

When the applet calls this redirection, what happens is http://www.internal.com/mycontext/somepage.html gets loaded in the browser instead of it being rewritten to http://www.external.com/mycontext/somepage.html

I find this strange because the other pages (non-applet pages) containing the /mycontext/ in the url are being rewritten properly.

here is a snippet of my config:

<virtualhost www.external.com>

ProxyRequests off
ProxyPass /mycontext/ http://www.internal/mycontext/
ProxyPassReverse /mycontext/ http://www.internal/mycontext/
ProxyHTMLURLMap http://www.internal.com/mycontext http://www.external.com/mycontext

<Location /mycontext/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /mycontext/
ProxyHTMLURLMap /mycontext /mycontext
RequestHeader unset Accept-Encoding
</Location>

</virtualhost>

any ideas would be appreciated.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7301
Location: Germany, Next to Hamburg

PostPosted: Fri 02 Nov '07 17:35    Post subject: Reply with quote

Which version of mod_proxy_html do you use?
I'm not used to Java. How does the it set the url? From the client? Maybe it is getting the url from the proxy which asks for the page and not the browser.
Back to top


Reply to topic   Topic: Redirect from applet reverse proxy problem View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules