tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg <>
Subject mass virtual hosting with rewrite
Date Fri, 02 Sep 2005 18:18:50 GMT
I am running Apache 2 with Tomcat 5.5. Both are working fine and hosting 
about 200 domain names. The problem is that every time a new domain is added 
I have to edit server.xml file and restart tomcat. With Apache I am using 
RewriteMap files so I just edit those files and no need to restart it. I 
wanted to run it by you guys and see if anyone tried using Rewrite to avoid 
setting up virtual hosts in Tomcat server.xml file. Basically have Rewrite 
conditions in Apache say" <> rewrite to localhost/user1 <> rewrite to localhost/user25

This way Tomcat doesn't have to be setup with all those virtual domain 
Any idea how to do it? Of course I would not want the URL to change in the 
browser address bar so the rewrite would have to be internal only.

What do you think?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message