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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2 routing URLs to internal servers sitting in 1 IP
Author
oziworld



Joined: 06 Aug 2006
Posts: 7

PostPosted: Sun 06 Aug '06 8:47    Post subject: Apache 2.2 routing URLs to internal servers sitting in 1 IP Reply with quote

Apache 2.2 is setup. I have an external domain name.

vxml.delacon.com.au and apache sitting on an internal server 192.168.2.11:80

I have tomcat sitting on an internal server 192.168.2.4:8080

I want to have all requests that goto vxml.delacon.com.au:80 to route to server 192.168.2.4:8080 via apache.

I then want to be able to put another host in here:

ie support.vxml.delacon.com.au into apache and I want requests to that to goto the document root directly or 192.168.2.11

Can someone help with these requests.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3057
Location: Hilversum, NL, EU

PostPosted: Wed 16 Aug '06 22:24    Post subject: Reply with quote

Did you looked into mod_proxy ajp ? See http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html

Example:

ProxyPass /examples ajp://127.0.0.1:8009/examples
ProxyPassReverse /examples ajp://127.0.0.1:8009/examples

Steffen
Back to top
oziworld



Joined: 06 Aug 2006
Posts: 7

PostPosted: Thu 17 Aug '06 0:37    Post subject: Reply with quote

thanks kindlly.

i did that and it worked.
Back to top
some_cs_student



Joined: 16 Aug 2006
Posts: 5

PostPosted: Thu 17 Aug '06 12:34    Post subject: Reply with quote

You can also use mod_jk so particular pages are looked after by tomcat...
Back to top


Reply to topic   Topic: Apache 2.2 routing URLs to internal servers sitting in 1 IP View previous topic :: View next topic
Post new topic   Forum Index -> Apache