Tomcat, Apache ir virtualūs serveriai
kadaise paleidau Tomcat už Apache, dabar dar prireikė, kad virtualūs serveriai rodytų į skirtingus kontekstus. vakar buvo neurogoogle, niekas nesigavo, tačiau šiandien pažiūrėjau į paskutinį paliktą atidarytą puslapį, nusiplagijavau jau matytą sprendimo būdą ir voila! viskas veikia, tyli euforija.
gavosi taip:$APACHE_ROOT/etc/domain.org.virtual
<VirtualHost 1.2.3.4:80> ServerAdmin admin@domain.org JkMount / ajp JkMount /* ajp JkAutoAlias /usr/home/webapps/domain.org/html DocumentRoot /usr/home/webapps/domain.org ServerName domain.org ServerAlias www.domain.org ErrorLog /var/log/httpd/domain.org.error.log CustomLog /var/log/httpd/domain.org.access.log combined </VirtualHost>$TOMCAT_ROOT/conf/server.xml
<Server port="8005" shutdown="SHUTDOWN" debug="0"> <..... /> <Engine name="Standalone" debug="0"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <Manager className="org.apache.catalina.session.PersistentManager" debug="0" saveOnRestart="true" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" maxIdleBackup="-1"> <Store className="org.apache.catalina.session.FileStore"/> </Manager> <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/> <ResourceParams name="mail/Session"> <parameter> <name>mail.smtp.host <value>localhost </parameter> </ResourceParams> <Host name="domain.com" debug="0" appBase="/home/webapps/domain.com" workDir="/home/webapps/work/domain.com" unpackWARs="true" autoDeploy="true" liveDeploy="false" deployXML="false"> <Alias>www.domain.com <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="domain.com." suffix=".log" timestamp="true"/> <Context path="" docBase="/home/webapps/domain.com" debug="3" crossContext="false" privileged="false" reloadable="false"> <Resource name="bean/ContextStringsFactory" auth="Container" type="ml.framework.util.ContextStrings"/> </Context> </Host> <Host name="domain.org" debug="0" appBase="/home/webapps/domain.org" workDir="/home/webapps/work/domain.org" unpackWARs="true" autoDeploy="true" liveDeploy="false" deployXML="false"> <Alias>www.domain.org <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="domain.org." suffix=".log" timestamp="true"/> <Context path="" docBase="/home/webapps/domain.org" debug="3" crossContext="false" privileged="false" reloadable="false"> <Resource name="bean/ContextStringsFactory" auth="Container" type="ml.framework.util.ContextStrings"/> </Context> </Host> </Engine> </Service> </Server>
Comments
faina kai moki kalba, kurios beveik niekas nusupranta, pavyzdziui, lietuviu ar kokia dirbtine..galima Shtirlica zaisti:)
11Y4 @ 2004-03-24 13:52:45
Labas
ERROR: Can't connect to database (stroike).
sita matom ant http://www.ore.lt ir visai nematom forumu.
rgds
daryk ka nors @ 2004-03-24 16:37:01
ve o kaip freeshkeje nustatyte port'as proxy serveri ?
ptrz @ 2004-03-25 09:21:31
ptrz: FreeBSD nėra proxy serverio :)
ve @ 2004-03-25 10:36:08
ne as turejau omenyje kaip nustatyti kad
portus pompintu per proxy serveri
debiane apt-setup o kaip portu sistemai paaiskinti kad ji naudotu proxy ?
ptrz @ 2004-03-25 12:24:56
http://www.freebsd.org/cgi/man.cgi?query=fetch&sektion=3#ENVIRONMENT
ve @ 2004-03-25 12:37:38
dekingas
ptrz @ 2004-03-25 15:06:43
istorija eina tolyn:
http://www.apachetomcat.com/home
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg61789.html
http://tomcat.apache.org/connectors-doc/changelog.html
ve @ 2005-12-08 20:02:10