Forum Moderators: phranque

Message Too Old, No Replies

Apache 2 & Jboss (URL masking)

         

kingpotnoodle

11:29 am on Jan 24, 2007 (gmt 0)

10+ Year Member



Ok, I am relatively new to the more advanced use of apache... go easy on me, I'm sure this is actually simple though!

I have one machine running Debian with apache2 and Jboss.

DNS for www.mysite.com points to our router's IP, ports 80/8080 are forwarded to port 80/8080 respectively on the machine above.

The website content is all in Jboss, and currently to connect you must go to the URL www.mysite.com:8080/mysite.

Currently I have a simple html redirect as the default apache page so that www.mysite.com is auto forwarded to www.mysite.com:8080/mysite.

BUT... this is an unacceptable URL to give or show to the public, we want www.mysite.com to be the one shown.

What I want to do is for apache2 to handle the incoming request for www.mysite.com and display the content from www.mysite.com:8080/mysite but always show www.mysite.com in the address bar.

www.mysite.com:8080/mysite/foo would be shown as www.mysite.com/foo etc etc etc.

I am doing my own research but if anyone can give me pointers I would be grateful!
Thanks :-)

jdMorgan

3:07 pm on Jan 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Apache mod_proxy [httpd.apache.org].

You want to reverse-proxy some (or possibly all) requests made to the front-end server on to the back-end server, which will achieve the transparent operation you're seeking.

Jim

kingpotnoodle

12:33 pm on Jan 25, 2007 (gmt 0)

10+ Year Member



Thanks, I was looking at mod_rewrite, but the reverse proxy looks much more suitable.

sabai

12:14 am on Jan 27, 2007 (gmt 0)

10+ Year Member



I use mod_jk for hooking apache up to tomcat... works very well for me.

[tomcat.apache.org...]

kingpotnoodle

1:18 pm on Jan 29, 2007 (gmt 0)

10+ Year Member



Its working with mod-proxy-html apart from one *small* problem...

The parser does not recognise the <Param> tag in an object to display a flash movie, and does not rewrite the link.