On Sun, Feb 1, 2009 at 6:57 AM, Jake Vang <vangj...@googlemail.com> wrote:
> I want to connect two Apache HTTP servers in the same way that I would
> connect Apache to Tomcat with mod_jk.
>
> Right now I have two Apache servers, apache1 and apache2, accessed at
> http://apache1 and http://apache2, correspondingly. Apache1 and Apache2 each
> has a website, accessed by http://apache1/website1 and
> http://apache2/website2, respectively. My problem is that I want to use
> apache1 as a front end for both servers (since it is the only server that is
> accessible to the outside world). How do I set up apache1 so that if users
> access http://apache1/website2, the request will be sent to
> http://apache2/website2, but still, the URL will be http://apache1/website2?
>
> This set up is similar to the possibility with Apache + Tomcat via mod_jk.
> In this situation, if Tomcat is running on port 8080 with AJP, then I can
> access Tomcat with http://tomcat:8080/tomcat-site. I can set up Apache as a
> frontend (to the outside world) so that when users type in
> http://apache/tomcat-site, mod_jk will connect to Tomcat. Is there a similar
> connector for Apache-to-Apache?

Sure. It's called mod_proxy, and you can read all about it here:

http://www.apachetutor.org/admin/reverseproxies

Just read this, and if you have trouble implementing it you can always ask here.

Krist



-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to