0

I have a web server using the LAMP stack and it has already been setup up using virtual hosts. I have recently added Tomcat 7 to the server and it runs fine on port 8080.

Can someone tell me how to setup Tomcat 7 virtual hosting for a website given that virtual hosting already exists with Apache 2 on port 80?

crmepham
  • 4,676
  • 19
  • 80
  • 155

1 Answers1

0

You need to define the virtual hosting in Tomcat as well and redirect from Apache Webserver to Tomcat using mod_jk or mod_proxy. See here:

Multiple Subdomains in Apache / Tomcat with mod_jk

Community
  • 1
  • 1
Stefan
  • 12,108
  • 5
  • 47
  • 66