You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robert Walther <rw...@interchangedigital.com> on 2002/05/09 17:19:06 UTC

see any problems here???

Dear Tomcat Users Group.
Do you see any errors in my config below, or do you have any
recommendations on how to make it better.  Any insight would be greatly
appreciated.

I have come up with the following configuration for 5 VirtualHost's that I
have running in my Apache 1.3.20 on Linux.  

Each VirtualHost connects to a Separate Tomcat 3.2.4 JVM via mod_jk, and
they all run independently from each other.  
Each JVM has its own tomcat home under a directory called
"/contexts/clientname", and each VirtualHost serves a single corporate
client.  
For example if I had a client called 3com.....see the following config for
this client example.

in server.xml

<ContextManager debug="0" home="/contexts/3com" workDir="work_3com"
showDebugInfo="false">

<Host Name "192.168.xxx.xxx">
<Context path="" docBase="webapps/3comsite" debug="0" />
</Host>


in http.conf

<VirtualHost 192.168.xxx.xxx:80>
#set DocumentRoot at 3comsite so I don't have to worry 
#about securing ROOT, admin, etc. in the webapps directory
DocumentRoot "/contexts/3com/webapps/3comsite"
ServerName 3comsite.mycompanydomain.com
#the 3comsite directory does not exist under 
#/contexts/3com/webapps/3comsite, so i must alias such 
#that a URL to ://3comsitename.mycompanydomain.com/3comsite 
#can find the directory one level up.
Alias /3comsite "/contexts/3com/webapps/3comsite"
#secure INF directories under 3comsite
<Location /3comsite/WEB-INF>
AllowOveride None
deny from all
</Location>
<Location /3comsite/META-INF>
AllowOveride None
deny from all
</Location>
#Mount and redirect only the following to Tomcat, if it's 
#not a servlet or its not a .jsp, it should be served by Apache.
JkMount /3comsite/servlet/* ajp13_3comworker
JkMount /3comsite/*.jsp ajp13_3comworker
#rewite URL so that ://3comsite.mycompanydomain.com/ will 
#go to and show ://3comsite.mycompanydomain.com/3comsite/index.jsp
RewriteEngine On
RewriteRule ^/$ /3comsite/index.jsp [R]
</VirtualHost>


Anybody want to grill me on this config...Thanks!
RobW

	





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>