Oops, I should have clarified that those directives are only available for
Apache 1.3.  Sorry.

Ray Madigan wrote:
> I have tried to insertthis directive in a VirtualHost section of httpd.conf
> and apache2 will not start - Invalid Command: JkAutoAlias perhaps
> mispelled...
> 
> How did u get this to work?
> 
> Thanks
> 
> 
> -----Original Message-----
> From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 4:46 AM
> To: Tomcat Users List
> Subject: Re: jkmount possibilities
> 
> 
> If you are using mod_jk 1.2 you can use the JkAutoAlias directive to
> tell Apache to automatically serve static content for all webapps.
> 
> <p>Use the mod_jk JkAutoAlias directive to map all web application context
> directories into Apache's document space. Attempts to access the
> <code>WEB-INF</code>
> or <code>META-INF</code> directories within a web application context or a
> Web Archive <code>*.war</code> within the Tomcat Host appBase (webapps)
> directory
> will fail with an HTTP 403, Access Forbidden.</p>
> <p>
> Example configuration for an Apache VirtualHost:
> 
> <pre>
> # Static files in all Tomcat webapp context directories are served by apache
> JkAutoAlias /export/home/web/host2/webapps
> </pre>
> </p>
> 
> Chris Stokes wrote:
> 
>>Hi
>>I was wondering if what I want to do is possible
>>
>>Tomcat 4.03
>>Apache 1.3.20
>>RHLinux 7.3
>>
>>I have not defined any contexts in my server.xml I just want them auto
> 
> generated when I start tomcat4. To do this I tried a number of different
> settings for jkmount and eventually settled on
> 
>>JkMount /*/servlet/* ajp13
>>This seemed to work as all my html and serlvets seemed to work fine.
>>However - now I discover that Tomcat is serving all content ie.
>>JkMount /*/servlet/* ajp13
>>Seems to work the same as
>>JkMount /* ajp13
>>
>>Is this the case?
>>I only want tomcat to serve anything with "servlet" in the uri no matter
> 
> what precedes it eg
> 
>>http://server/context1/servlet/myservlet
>>http://server/context2/servlet/myservlet
>>
>>
>>This is in my httpd.conf
>>
>>LoadModule jk_module         modules/mod_jk.so
>>AddModule mod_jk.c
>>
>><IfModule mod_jk.c>
>>    JkWorkersFile /etc/httpd/conf/workers.properties
>>    JkLogFile logs/mod_jk.log
>>    JkLogLevel error
>></IfModule>
>>
>>NameVirtualHost 192.168.192.103
>>
>><VirtualHost 192.168.192.103:80>
>>    ServerAdmin email@address
>>    DocumentRoot /home/bass/iAP21
>>    ServerName server.name.com
>>    ErrorLog logs/ap21-error_log
>>    CustomLog logs/ap21-access_log common
>>    JkMount /*/servlet/* ajp13
>></VirtualHost>
>>
>>Chris Stokes
>>Senior Systems Consultant
>>Bass Software Pty Ltd
>>[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]>




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

Reply via email to