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 an Apache & Tomcat installation, and need to configure it as follows.

  • www.companyName.com/ -> Wordpress site, served through Apache
  • www.companyName.com/** -> Wordpress site, served through Apache (Except as below)
  • www.companyName.com/Register.html -> Registration application, handled through tomcat
  • xxx.companyName.com/ -> Main application, handled through tomcat.

(Note, the final xxx.companyName is a catch-all, as the tomcat application will handle processing and routing based on the subdomain)

Note that Tomcat is currently running on port 8080. I'd prefer the URL not to show the port number. Should I reconfigure tomcat? (I doubt I can have both tomcat and apache listening on port 80...)

How & where would I configure this routing?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You want to use mod_proxy_ajp in apache. It is a tomcat connector, so it will proxy the requests for dynamic content to the tomcat server.

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.