Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache reverse proxy and java applets
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
massctrl
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 156

PostPosted: Mon Jan 02, 2006 5:04 pm    Post subject: Apache reverse proxy and java applets Reply with quote

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
View user's profile Send private message
Ausdonky
n00b
n00b


Joined: 12 May 2004
Posts: 15
Location: Brisbane, Oztralia :)

PostPosted: Mon Feb 27, 2006 12:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
massctrl
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 156

PostPosted: Fri Jan 05, 2007 9:01 am    Post subject: Reply with quote

Hello Ausdonky,

Thanks for the answer and the late reply,..
I will try your suggestion and let you know the result.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum