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 am running Apache on port 80 of my server, and JBoss on port 8080 of the same machine. How can I have Apache redirect requests with a certain domain name to the JBoss server on 8080? I'd like to keep the port number from showing in the URLs for the JBoss site.. is an Apache rewrite the best way to do this? Or should I use a different method / tool?

For example, requests to "" would eventually lead the user to, while requests to "" would bring them to

share|improve this question
up vote 3 down vote accepted

I'd use a connector in the virtual host instead of redirecting.

share|improve this answer

I don't know if this is the best way but you could use mod_proxy to setup a reverse proxy.

Virtual host is setup for on this would be proxied to

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.