You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Stokes <Ch...@BassSoftware.com> on 2002/08/28 08:53:32 UTC
jkmount possibilities
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
ChrisS@BassSoftware.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: jkmount possibilities
Posted by Glenn Nielsen <gl...@mail.more.net>.
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:glenn@mail.more.net]
> 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
>>ChrisS@BassSoftware.com
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>
> <ma...@jakarta.apache.org>
>
>>For additional commands, e-mail:
>
> <mailto:tomcat-user-help@jakarta.apache.org
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Connector/J - which version to use (2 or 3 beta)?
Posted by neal <ne...@yahoo.com>.
Does anyone have a preference on whether to use V2 or v3(beta) of
Connector/J?
I read on the mySQL site that there are some new features that seemed
significnat (support of prepared statements, and 50-100% faster) ...but I
couldn't tell if these were new as of v2 or v3. There might also be other
important new features to consider.
Does anyone have any recommendations?
FYI - I'm woriking with Tomcat 4.0.3 and will be doing conn pooling via JNDI
on tomcat.
Thanks.
Neal
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: jkmount possibilities
Posted by Ray Madigan <ra...@madigans.org>.
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:glenn@mail.more.net]
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
> ChrisS@BassSoftware.com
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: jkmount possibilities
Posted by Glenn Nielsen <gl...@mail.more.net>.
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
> ChrisS@BassSoftware.com
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>