Getting Mod_Jk to work

Discussion in 'Installation/Configuration' started by Rock, Jul 6, 2006.

  1. Rock

    Rock New Member

    Hi

    I have install ISPConfig together with mod jk to run jsp on tomcat. Here is the funny part;

    I have 2 domain names domain1.org and domain2.com
    Using exactly the same config on Server.xml (mod_jk.conf is auto generated), worker.properties, I was able to have domain1.org/index.jsp running, but not domain2.com/index.jsp! (What I meant is all I did was change the domain name on these config files.)

    The default pages are running for both doamin. With the domain2.com, it seems that it directly mount the mod_jk.conf! I am saying this because I could access domain2.com/apps/index.jsp.

    Is there anything in ISPConfig that I have to set to get the domain2.com/index.jsp running?

    My partial configs are as follows;
    Server.xml
    Code:
         <Host name="www.kilanaell.com" appBase="webapps"
            unpackWARs="true" autoDeploy="true">
     
     	<Context path="" docBase="vshop" debug="1" reloadable="true"/>
    
    
            <Valve className="org.apache.catalina.valves.AccessLogValve"
                     directory="logs"  prefix="kilanaell_access_log." suffix=".txt"
                     pattern="common" resolveHosts="false"/>
          </Host>
    mod_jk.conf
    Code:
    <VirtualHost www.kilanaell.com>
        ServerName www.kilanaell.com
    
        JkMount /webdav ajp13
        JkMount /webdav/* ajp13
    
        JkMount /test ajp13
        JkMount /test/* ajp13
    
        JkMount /balancer ajp13
        JkMount /balancer/* ajp13
    
        JkMount /vshop ajp13
        JkMount /vshop/* ajp13
    </VirtualHost>
    worker.properties
    Code:
    worker.list=worker1
     
    worker.worker1.port=8009
    worker.worker1.host=www.kilanaell.com
    worker.worker1.type=ajp13
    worker.worker1.lbfactor=10
    vhost_ispconfig.conf
    Code:
    <VirtualHost 192.168.1.100:80>
    ServerName www.kilanaell.com:80
    
    JkMount /* worker1
    JkMount /*jsp worker1
    JkMount /*faces worker1
    JkMount /admin/* worker1
    JkMount /manager/* worker1
    
    ServerAdmin webmaster@kilanaell.com
    DocumentRoot /home/www/web3/web
    ServerAlias kilanaell.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.jsp default.jsp
    ispconfig rocks!
     
  2. Rock

    Rock New Member

  3. falko

    falko Super Moderator ISPConfig Developer

    I've never worked with JSP, but maybe you need to change

    Code:
    <VirtualHost www.kilanaell.com>
        ServerName www.kilanaell.com
    
        JkMount /webdav ajp13
        JkMount /webdav/* ajp13
    
        JkMount /test ajp13
        JkMount /test/* ajp13
    
        JkMount /balancer ajp13
        JkMount /balancer/* ajp13
    
        JkMount /vshop ajp13
        JkMount /vshop/* ajp13
    </VirtualHost>
    to

    Code:
    <VirtualHost www.kilanaell.com>
        ServerName www.kilanaell.com
    
        [B][COLOR="Red"]JkMount / ajp13
        JkMount /* ajp13[/COLOR][/B]
    
        JkMount /webdav ajp13
        JkMount /webdav/* ajp13
    
        JkMount /test ajp13
        JkMount /test/* ajp13
    
        JkMount /balancer ajp13
        JkMount /balancer/* ajp13
    
        JkMount /vshop ajp13
        JkMount /vshop/* ajp13
    </VirtualHost>
     

Share This Page