Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

2011-07-01

Forwarding traffic from Apache2 to Tomcat on Ubuntu

I have several Java webapps running under Tomcat that I wanted to be accessible through Apache2 running on port 80 on my home server. It turns out that it's pretty easy to do, though I didn't find an example anywhere that included all the steps I needed to take to get it working. Most of what I need to know was at this blog post.

First of all, here are the exact versions I'm running. I wouldn't be surprised if there are newer major versions; I need to upgrade the server.
  • Apache2: 2.2.11
  • Tomcat: 6.0.18
We're going to proxy traffic back and forth between Apache2 and Tomcat using Apache JServ Protocol. Apache ships with support through the module proxy_ajp, and Tomcat has a built-in connector.