Problem in apache server and tomcat configuration

Discussion in 'Apache' started by jbashir, Aug 31, 2006.

  1. #1
    I am using mod_jk to connect Apache 2.2.3 and Tomcat 5.0.28.
    mod_jk.conf file which is generated automatically in /TOMCAT_HOME/conf/auto/ is empty (no text in the file). I have added the

    below text manually in mod_jk.conf.

    <IfModule !mod_jk.c>
    LoadModule jk_module C:/Program Files/Apache Group/Apache/modules/mod_jk.dll
    </IfModule>

    <VirtualHost localhost>
    ServerName localhost

    JkMount /admin ajp13
    JkMount /admin/* ajp13

    JkMount /webdav ajp13
    JkMount /webdav/* ajp13

    JkMount /examples ajp13
    JkMount /examples/* ajp13

    JkMount /tomcat-docs ajp13
    JkMount /tomcat-docs/* ajp13

    JkMount /manager ajp13
    JkMount /manager/* ajp13
    </VirtualHost>

    I have included the below tag in server.xml in /TOMCAT_HOME/conf:
    <Listener className="org.apache.jk.config.ApacheConfig" modJk="C:/Program Files/Apache Group/Apache/modules/mod_jk.dll" />.

    I have aslo included the below line in httpd.conf in C:/Program Files/Apache Group/Apache/conf:
    Include "/TOMCAT_HOME/conf/auto/mod_jk.conf"

    Now the apache should run as http://localhost/.

    And when I write http://localhost/servlets-examples/ it should display the contents from Tomcat. But it shows 'The page

    cannot be found'. Why is this so. Is there any wrong in the configuration?

    Another thing - After writing the text manually in the mod_jk.conf file and then restarting the apache server, the file is

    empty again. What's wrong going here?

    Your help will be appreciated.

    Thanks in advance.
     
    jbashir, Aug 31, 2006 IP