Articles taggés JEE

HOWTO : Virtual Host on Tomcat 7

0

In this post you will learn how to configure virtual hosting on Tomcat 7. It works also well if you use Apache as a frontend with mod_proxy_ajp (see my previous post).

In this example www.myfirstapp.com will use the webapp myfirstapp.war and www.mysecondapp.com will use the webapp mysecondapp.war. Let’s see.

First add the new hosts in server.xml (after default localhost host):

<Host Plus >

HOWTO : Tomcat 7 + Apache 2 + mod_proxy_ajp on CentOS / RHEL 6

2

In this post you will learn how to configure access to Tomcat trough an Apache virtual host on port 80 with mod_proxy_ajp. The Tomcat webapp will be available on http://www.mybestapp.com/ The Apache static content (css, javascript, etc.) will be available on http://static.mybestapp.com/

First install Java JRE 7. You can download it on Plus >

Haut de page