It seems to be a problem of your apache configuration. Your error message
seems to indicate that the virtual host is not recognized, since not even
the alias for the static content has any effect. Are you depending on the
"VirtualHost"-part? If not, try to replace it (the whole block) with the
follwing lines and try how far this gets you:

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13
JkMount /webdav/*.jsp  ajp13
JkMount /webdav/servlet/*  ajp13
JkMount /tomcat-docs/*.jsp  ajp13
JkMount /tomcat-docs/servlet/*  ajp13
JkMount /manager/*.jsp  ajp13
JkMount /manager/servlet/*  ajp13
JkMount /manager/*  ajp13
JkMount /sywareTech/*.jsp  ajp13
JkMount /sywareTech/servlet/*  ajp13


By the way: Since your webbapps-directory is not in your apaches
document-path, you don't need to worry about securing your WEB-INF and
META-INF directories. With the above, static content (i.e. not *.jsp or
servlets) will be served out of the corresponding directories under
/usr/local/apache2/htdocs/. If you don't want that, change the *.jsp into *
(in "JkMount /examples/*.jsp  ajp13" etc.). If that is not acceptable when
it comes to performance, try it with the alias again, but then you should
also protect the tomcat-special-directories.

Andreas Mohrig

-----Original Message-----
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:02 PM
To: Tomcat Users List
Subject: Re: Can't get tomcat 4 + mod_jk + apache to work


Here's the contents of my mod_jk.conf :


########## Auto generated on Tue Aug 20 19:28:15 EST 2002##########

<IfModule !mod_jk.c>
  LoadModule jk_module /usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so
</IfModule>

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

JkLogLevel emerg



<VirtualHost toecutter>
    ServerName toecutter

    #################### toecutter:/examples ####################

    # Static files
    Alias /examples "/usr/local/jakarta-tomcat-4.0.4/webapps/examples"

    <Directory "/usr/local/jakarta-tomcat-4.0.4/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/*.jsp  ajp13
    JkMount /examples/servlet/*  ajp13
    JkMount /examples/servletToJsp  ajp13
    JkMount /examples/SendMailServlet  ajp13

    #################### toecutter:/webdav ####################

    # Static files
    Alias /webdav "/usr/local/jakarta-tomcat-4.0.4/webapps/webdav"

    <Directory "/usr/local/jakarta-tomcat-4.0.4/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
    JkMount /webdav/servlet/*  ajp13

    #################### toecutter:/tomcat-docs ####################

    # Static files
    Alias /tomcat-docs "/usr/local/jakarta-tomcat-4.0.4/webapps/tomcat-docs"

    <Directory "/usr/local/jakarta-tomcat-4.0.4/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
    JkMount /tomcat-docs/servlet/*  ajp13

    #################### toecutter:/manager ####################

    # Static files
    Alias /manager "/usr/local/jakarta-tomcat-4.0.4/webapps/manager"

    <Directory "/usr/local/jakarta-tomcat-4.0.4/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/*.jsp  ajp13
    JkMount /manager/servlet/*  ajp13
    JkMount /manager/*  ajp13

    #################### toecutter:/sywareTech ####################

    # Static files
    Alias /sywareTech "/usr/local/jakarta-tomcat-4.0.4/webapps/sywareTech"

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


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

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

    JkMount /sywareTech/*.jsp  ajp13
    JkMount /sywareTech/servlet/*  ajp13
</VirtualHost>

----- Original Message -----
From: "Sullivan, Mark E" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 11:37 PM
Subject: RE: Can't get tomcat 4 + mod_jk + apache to work


> it would be very helpful if you could post the contents of this file:
>
> /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
>
> Otherwise, solving this problem will be very difficult
>
> > Scott Adamson
> > Systems Administrator
> > Syware Technology
> >
> > [EMAIL PROTECTED]
> > http://upe.com.au
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to