tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 박영훈 <weg...@hoolla.com>
Subject help, virtual hosting ( tomcat 3.2)
Date Mon, 08 Jan 2001 10:18:08 GMT
i am attempting to make tomcat work with my virtual hosting setup (2 domain)
i have set up tomcat.conf, server.xml, httpd.conf following tomcat user guide 
strangely, after set up, both servlet and jsp work at one site properly
but  at the other site , only servlet works and the call to a jsp file seems to lead the host
to infiinte loop
two domain have nearly same configuration, i can't figure out this probelm for 2 days
plz help me
here is my configuration

httpd.conf
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c

JkWorkersFile /usr/local/jakarta/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JklogLevel warn

NameVirtualHost 211.189.158.103

<VirtualHost 211.189.158.103>
    ServerAdmin byoulvit@hoolla.com
    DocumentRoot "/home/hoollavip/public_html"
    ServerName test.hoollaivip.com
    ErrorLog logs/test.hoollavip.com_217-error_log
    CustomLog logs/test.hoollavip.com_217-access_log common
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    <Directory "/home/hoollavip/public_html/WEB-INF">
       Options None
       Deny from all
    </Directory>
</VirtualHost>

<VirtualHost 211.189.158.103>
    ServerAdmin byoulvit@hoolla.com
    DocumentRoot "/home/www/htdocs"
    ServerName test.hoolla.com
    ErrorLog logs/test.hoolla.com_217-error_log
    CustomLog logs/test.hoolla.com_217-access_log common
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    <Directory "/home/www/htdocs/WEB-INF">                  
      Options None
      Deny from all
    </Directory>
</VirtualHost>                                                                     
                        



tomcat.conf



ApJServMount http://test.hoolla.com/servlet /home/www/htdocs

ApJServMount http://test.hoollavip.com/servlet /home/hoollavip/public_html               
                             




server.xml

        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
            <Parameter name="port" value="8009"/>
        </Connector>

        <Host name="test.hoolla.com">
           <Context path="" docBase="/home/www/htdocs" debug="0"/>
        </Host>
        <Host name="test.hoollavip.com">
           <Context path="" docBase="/home/hoollavip/public_html" debug="0"/>
        </Host>                                                                    
                                    
Mime
View raw message