Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my server, I installed the apache and tomcat. But, when I access the my site,, will for the apache. I want that access the tomcat, because I will put my site in tomcat. How to ?

share|improve this question

Set up a connector from Apache to Tomcat (one such connector is mod_jk). Here are some docs on how to do it:

There's also this ServerFault question from a while ago:

How do I properly run Tomcat alongside Apache?

(Actually, look at the Related topics columns on the right of this page; you'll see a bunch of things related to Apache and Tomcat)

Basically, Apache is in front of Tomcat, and will act as a reverse proxy. Apache can be used to handle the static content of your site, and Tomcat the dynamic part.

share|improve this answer

You can do it enabling the ProxyPass directive in apache config file.

ProxyPass /
ProxyPassReverse /
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.