View previous topic :: View next topic |
Author |
Message |
massctrl Apprentice
Joined: 19 Mar 2004 Posts: 156
|
Posted: Mon Jan 02, 2006 5:04 pm Post subject: Apache reverse proxy and java applets |
|
|
Hi all,
I'm having this situation:
Webbrowser -----> NIC 1 - 192.168.1.2 Server running Apache with reverse proxy NIC 2 - 10.0.0.10 -----> 10.0.0.11 Hardwareappliance with java pplets. listening on port 82
My webserver has 2 networkinterfaces. The webserver can access 10.0.0.11 without a problem.
I want to be able to show the contents of 10.0.0.11 to my client webbrowsers.
This works for the html stuff etc,..... but not for the JAVA applets,.......
This is a part of my httpd.conf relevant to this.
I followed the instructions found at http://www.apacheweek.com/features/reverseproxies
Code: | ProxyRequests off
ProxyHTMLExtended On
ProxyPass /test/ http://10.0.0.11:82/
ProxyHTMLURLMap http://10.0.0.11:82 /test
<Location /test/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /test/
ProxyHTMLURLMap /test /test
RequestHeader unset Accept-Encoding
</Location> |
Can someone point me in the right direction please ?
Thanks in advance, |
|
Back to top |
|
|
Ausdonky n00b
Joined: 12 May 2004 Posts: 15 Location: Brisbane, Oztralia :)
|
Posted: Mon Feb 27, 2006 12:01 pm Post subject: |
|
|
Hi Massctrl,
Not sure if youd worked this out or not yet.. You should be able to just use the following:
Code: |
NameVirtualHost *:80
<VirtualHost *:80>
ProxyPass /test/ http://10.0.0.11:82/
ProxyPassReverse /test/ http://10.0.0.11:82/
</VirtualHost>
|
and if you want to use domain name also add:
Code: |
ServerName <yourdomainname.com>
|
into the virtualhost section
The only reason you would need to use HTML URL Mapping is if you have links in the page being hosted on the hardware applience that you would like translated to look like they are all coming from 192.168.1.2 (or from your servers name or some other DNS name?). Although.. if this is the case you would want to use something like:
Code: |
NameVirtualHost *:80
<VirtualHost *:80>
ProxyPass /test/ http://10.0.0.11:82/
ProxyPassReverse /test/ http://10.0.0.11:82/
ProxyHTMLURLMap http://10.0.0.11:82/ http://192.168.1.2/
SetOutputFilter proxy-html
</VirtualHost>
|
or similar Note the addition of the ProxyHTMLURLMap will replace any html code with http://10.0.0.11:82/ with http://192.168.1.2/ so you may need to play around with this (or add multiple URL maps if this doesnt match your situation exactly.
HTH
Andrew (ausdonky) |
|
Back to top |
|
|
massctrl Apprentice
Joined: 19 Mar 2004 Posts: 156
|
Posted: Fri Jan 05, 2007 9:01 am Post subject: |
|
|
Hello Ausdonky,
Thanks for the answer and the late reply,..
I will try your suggestion and let you know the result. |
|
Back to top |
|
|
|