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 "x.com" would eventually lead the user to 1.2.3.4:80, while requests to "y.com" would bring them to 1.2.3.4:8080.

link|improve this question

0% accept rate
feedback

2 Answers

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

link|improve this answer
feedback

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 y.com on 1.2.3.4:80 this would be proxied to 1.2.3.4:8080.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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