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

I have a jboss application server on machine1. The application address is http://ip-address:8080/webapp. I wanted to have only an ip pointing to the application. So on machine2 I setup an apache proxy. But it only helps to shift to port 80 but the directory webapp cannot be removed. So using proxy, the address is http://ip-address/webapp. So is there a way to just have the ip point to the application. For example the address http://ip-address should open the web page of the application.

share|improve this question
up vote 2 down vote accepted

JBoss integration with apache2 is best done using the Tomcat connector (mod_jk).

Depending on your server environment you may even have readymade packages available to quickly setup mod_jk.

share|improve this answer

Take a look at this SFq:

Here's a bit more verbose version:

Take a look at "Debugging your Proxy Configuration" section.

Note that there may be issues with this setup, depending on what you app is doing. The simple case would be if you use any URLs in JavaScript - these may need to be converted if they change the behavior of the app in a way visible to the end user (e.g. doing redirects or so).

share|improve this answer

Using mod_jk I have used Apache as front end to Tomcat.

The working vhost configuration I had is

<VirtualHost *:80>

ProxyPass / ajp://
ProxyPassReverse / ajp://

Other security and logging directives you can include in the definition as per your needs/

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.