On Fri, 20 Apr 2007, Mladen Turk wrote:

Faheem Mitha wrote:

Ok, thanks for your help. This is the portion of the log generated by mod_jk, which I presume is what is relevant. The formatting is not optimal, but I can try to wrap it if desired.


The server wide directives:
JkWorkersFile, etc must not be defined inside VirtualHost
Put those in root.

Hi,

The relevant section of the apache config file follows. As you can see, everything in currently inside VirtualHost.

What directives can be safely left inside VirtualHost?

The documentation clearly states that

"You can use the JkMount directive at the top level or inside <VirtualHost> sections of your httpd.conf file." Does everything else have to be outside?

Thanks for pointing this out. It is so easy to miss the obvious.

                                                          Faheem.

**************************************************************************

<VirtualHost 152.3.172.60:443>
    ServerName dulcicore.dulci.org
    # Sample mod_jk configuration
    # for Apache 2
    #
    # for all commands/options available see the manual
    # provided in libapache-mod-jk-doc package.

    # The location where mod_jk will find the workers definitions

    JkWorkersFile       /etc/libapache2-mod-jk/workers.properties

    # The location where mod_jk is going to place its log file

    JkLogFile   /var/log/apache2/mod_jk.log

    # The log level:
    # - info log will contain standard mod_jk activity (default).
    # - warn log will contain non fatal error reports.
    # - error log will contain also error reports.
    # - debug log will contain all information on mod_jk activity
    # - trace log will contain all tracing information on mod_jk activity

    JkLogLevel debug

    # Assign specific URLs to Tomcat. In general the structure of a
    # JkMount directive is: JkMount [URL prefix] [Worker name]

    # send all requests ending in .jsp to ajp13_worker
    JkMount /* ajp13_worker
    #JkMount /* ajp13_worker
    # send all requests ending /servlet to ajp13_worker
    #JkMount /*/servlet/ ajp13_worker

    # JkUnmount directive acts as an opposite to JkMount and blocks access
    # to a particular URL. The purpose is to be able to filter out the
    # particular content types from mounted context.

    # do not send requests ending with .gif to ajp13_worker
    #JkUnMount /servlet/*.gif ajp13_worker


    # JkMount / JkUnMount directives can also be used inside <VirtualHost>
    # sections of your httpd.conf file.
</VirtualHost>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to