Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

up vote 2 down vote accepted

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

http://community.jboss.org/wiki/UsingModjk12WithJBoss

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>
ServerName yourapp.name

ProxyPass / ajp://internal.com
ProxyPassReverse / ajp://internal.com
</VirtualHost>

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

share|improve this answer

Your Answer

 
discard

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.