WP> We are starting to design a ISP level JSP virutal hosting system which
WP> could serve JSP and Servlets.
Would you use have 1 tomcat per server?
If yes, Would you protect it from abusing code? e.g. Anyone would be
able to upload code with infinite loops to server.
--
Best regards,
Dima mailto:dima@(protected)
Thursday, December 21, 2006, 6:08:32 AM, you wrote:
WP> Hello,
WP> We are starting to design a ISP level JSP virutal hosting system which
WP> could serve JSP and Servlets.
WP> Here are some thing i decide to to:
WP> Apache 2.0.52(RHEL 4 default installation)
WP> Tomcat 5.5.20 (http://tomcat.apache.org)
WP> Tomcat connector 1.2.18(http://tomcat.apache.org)
WP> Add the follow lines in httpd.conf
WP> JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
WP> JkLogFile /etc/httpd/logs/mod_jk.log
WP> JkLogLevel info
WP> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
WP> <Location "/WEB-INF/">
WP> AllowOverride None
WP> deny from all
WP> </Location>
WP> <Location "/META-INF/">
WP> AllowOverride None
WP> deny from all
WP> </Location>
WP> Then here is a example <VirtualHost> in httpd.conf
WP> <VirtualHost 1.2.3.4>
WP> SuexecUserGroup wangph clients
WP> ServerAdmin root@(protected)
WP> ServerName wangph.example.com
WP> DocumentRoot "/home/wangph/wwwroot"
WP> ScriptAlias /cgi-bin/ /home/wangph/wwwroot/cgi-bin/
WP> ScriptAlias /perl/ /home/wangph/wwwroot/cgi-bin/
WP> ErrorLog logs/error_log
WP> JkMount /*.jsp ajp13
WP> JkMount /servlet/* ajp13
WP> </VirtualHost>
WP> And here is a example <Host> in server.xml
WP> <Host className="
org.apache.catalina.core.StandardHost" appBase=""
WP> autoDeploy="true"
WP> configClass="
org.apache.catalina.startup.ContextConfig"
WP> contextClass="
org.apache.catalina.core.StandardContext" debug="0"
WP> deployXML="true"
WP> errorReportValveClass="
org.apache.catalina.valves.ErrorReportValve"
WP> liveDeploy="true"
WP> mapperClass="org.apache.catalina.core.StandardHostMapper"
WP> name="wangph.example.com" unpackWARs="true">
WP> <Context path="" docBase="/home/wangph/wwwroot" reloadable="true"
debug="0"/>>
WP> </Host>
WP> I leave appBase blank. And point the docBase to the apache virtual
WP> documentroot.
WP> If i add a new virtual host, simply add one <VirutalHost> in httpd.conf
WP> and one <Host> in server.xml.
WP> Is there any problem?
WP> Thanks very much
WP> Wang Penghui
WP> ---------------------------------------------------------------------
WP> To start a new topic, e-mail: users@(protected)
WP> To unsubscribe, e-mail: users-unsubscribe@(protected)
WP> For additional commands, e-mail: users-help@(protected)
---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)