tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volker <tom...@Trendsetter.de>
Subject Re: mod_jk.conf-auto or /auto/mod_jk.conf (J. Turner)?
Date Sun, 20 Jul 2003 19:38:43 GMT
Simon Pabst schrieb:

> Seems like your JkMount isn't working, since the error comes from Apache,
> what does the auto generated mod_jk.conf look like?

Hi Simon,

thank you very much  for your help! Meanwhile I am a little bit desperate.

The generated mod_jk.conf is at the end of that posting!

Under /conf/jk a workers.properties is located with that content:

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

After starting TomCat 4.1.24 I get following output in /tomcat/logs/catalina.out:

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=1/84
config=/usr/local/jakarta-tomcat4.1/conf/jk2.properties

I do not understand what is happening here with "jk2.properties" because I want to
use mod_jk (jk1) and NOT jk2. BTW all lines in jk2.properties are disabled.


ApacheĀ“s error_log (after restarting apache) shows:

[Sun Jul 20 19:19:08 2003] [notice] caught SIGTERM, shutting down
[Sun Jul 20 19:19:09 2003] [notice] Apache/1.3.27 OpenSSL/0.9.7 (Unix) mod_jk/1.2.3
configured -- resuming normal operations
[Sun Jul 20 19:19:09 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/local/apache/bin/suexec)
[Sun Jul 20 19:19:09 2003] [notice] Accept mutex: flock (Default: flock)

Trying to access http://www.MyDomain.net:8080/examples/jsp/num/numguess.jsp works
correctly.

But trying it via port 80 always fails!

ApacheĀ“s error_log shows following line:
[Sun Jul 20 19:20:18 2003] [error] [client 217.234.160.236] File does not exist:
/usr/local/apache/htdocs/examples/jsp/num/numguess.jsp


I do not have the slightes notion why port access via 80 does not work!?


Thanks a lot and best regards

Volker



generated mod_jk.conf (is included via "Include
/usr/local/tomcat/conf/auto/mod_jk.conf" at the end of httpd.conf
------------------------------

########## Auto generated on Sun Jul 20 19:22:52 GMT+00:00 2003##########

<IfModule !mod_jk.c>
  LoadModule jk_module /usr/local/apache/modules/mod_jk.so
</IfModule>

JkWorkersFile "/usr/local/jakarta-tomcat4.1/conf/jk/workers.properties"
JkLogFile "/usr/local/jakarta-tomcat4.1/logs/mod_jk.log"

JkLogLevel emerg



<VirtualHost localhost>
    ServerName localhost

    #################### localhost:/examples ####################

    # Static files
    Alias /examples "/usr/local/jakarta-tomcat4.1/webapps/examples"

    <Directory "/usr/local/jakarta-tomcat4.1/webapps/examples">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/examples/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/examples/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /examples/jsp/security/protected/j_security_check  ajp13
    JkMount /examples/snoop  ajp13
    JkMount /examples/CompressionTest  ajp13
    JkMount /examples/servlet/*  ajp13
    JkMount /examples/*.jsp  ajp13
    JkMount /examples/servletToJsp  ajp13
    JkMount /examples/SendMailServlet  ajp13

    #################### localhost:/webdav ####################

    # Static files
    Alias /webdav "/usr/local/jakarta-tomcat4.1/webapps/webdav"

    <Directory "/usr/local/jakarta-tomcat4.1/webapps/webdav">
        Options Indexes FollowSymLinks
        DirectoryIndex index.jsp index.html index.htm
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/webdav/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/webdav/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /webdav/*.jsp  ajp13

    #################### localhost:/tomcat-docs ####################

    # Static files
    Alias /tomcat-docs "/usr/local/jakarta-tomcat4.1/webapps/tomcat-docs"

    <Directory "/usr/local/jakarta-tomcat4.1/webapps/tomcat-docs">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/tomcat-docs/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/tomcat-docs/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /tomcat-docs/*.jsp  ajp13

    #################### localhost:/manager ####################

    # Static files
    Alias /manager "/usr/local/jakarta-tomcat4.1/webapps/../server/webapps/manager"

    <Directory "/usr/local/jakarta-tomcat4.1/webapps/../server/webapps/manager">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/manager/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/manager/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /manager/html/*  ajp13
    JkMount /manager/resources  ajp13
    JkMount /manager/undeploy  ajp13
    JkMount /manager/sessions  ajp13
    JkMount /manager/serverinfo  ajp13
    JkMount /manager/reload  ajp13
    JkMount /manager/start  ajp13
    JkMount /manager/*.jsp  ajp13
    JkMount /manager/list  ajp13
    JkMount /manager/stop  ajp13
    JkMount /manager/deploy  ajp13
    JkMount /manager/roles  ajp13
    JkMount /manager/remove  ajp13
    JkMount /manager/install  ajp13

    #################### localhost:/admin ####################

    # Static files
    Alias /admin "/usr/local/jakarta-tomcat4.1/webapps/../server/webapps/admin"

    <Directory "/usr/local/jakarta-tomcat4.1/webapps/../server/webapps/admin">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/admin/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/admin/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /admin/j_security_check  ajp13
    JkMount /admin/*.jsp  ajp13
    JkMount /admin/*.do  ajp13
</VirtualHost>
------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message