You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Sherwood <js...@romulin.com> on 2004/06/03 16:26:52 UTC
Serving up static content through apache using mod_jk
Hi,
I am trying to serve up some of our static content through Apache
instead of Tomcat
I am using apache 2.049 and Tomcat 5.025 with mod_jk 1.2.5
Lets say in tomcat I have a directory serving up static html called
staticserve. I reach it through
www.mydomain.ca/staticserve/index.html
I created a virtual host like this:
<VirtualHost *>
ServerAdmin me@mydomain.com
DocumentRoot %pathtoapache%/htdocs/staticserve
ServerName mydomain.ca
JKMount /* ajp13
ErrorLog mylog.log
</VirtualHost>
and transfered the contents of staticserve to the staticserve directory in
htdocs.
My problem is that apache is not serving up the contents in staticserve,
tomcat is
I think I am just missing something small, any ideas?
Thanks James
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Serving up static content through apache using mod_jk
Posted by James Sherwood <js...@romulin.com>.
Yes but in my case I have a ton of directories that are dynamically changed
so I want everything served through tomcat except some static stuff in one
directory:)
Any ideas?
----- Original Message -----
From: "QM" <qm...@brandxdev.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, June 03, 2004 11:50 AM
Subject: Re: Serving up static content through apache using mod_jk
> On Thu, Jun 03, 2004 at 11:52:11AM -0300, James Sherwood wrote:
> : If the JKMount /* ajp13 passes everything to the jk handler, is there a
way
> : route everything
> : but /staticserve directory to the jk handler?
>
> I've never done that, so I wouldn't know.
>
> I prefer the opposite approach: have a handful of JkMount directives,
> one for each Tomcat-served URI or file extension:
>
> JkMount /*.jsp
> JkMount /*.do
> JkMount /special/*
> JkMount /j_security_check
>
> -QM
>
> --
>
> software -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Serving up static content through apache using mod_jk
Posted by QM <qm...@brandxdev.net>.
On Thu, Jun 03, 2004 at 11:52:11AM -0300, James Sherwood wrote:
: If the JKMount /* ajp13 passes everything to the jk handler, is there a way
: route everything
: but /staticserve directory to the jk handler?
I've never done that, so I wouldn't know.
I prefer the opposite approach: have a handful of JkMount directives,
one for each Tomcat-served URI or file extension:
JkMount /*.jsp
JkMount /*.do
JkMount /special/*
JkMount /j_security_check
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Serving up static content through apache using mod_jk
Posted by James Sherwood <js...@romulin.com>.
If the JKMount /* ajp13 passes everything to the jk handler, is there a way
route everything
but /staticserve directory to the jk handler?
----- Original Message -----
From: "QM" <qm...@brandxdev.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, June 03, 2004 11:27 AM
Subject: Re: Serving up static content through apache using mod_jk
> On Thu, Jun 03, 2004 at 11:26:52AM -0300, James Sherwood wrote:
> : <VirtualHost *>
> : ServerAdmin me@mydomain.com
> : DocumentRoot %pathtoapache%/htdocs/staticserve
> : ServerName mydomain.ca
> : JKMount /* ajp13
> : ErrorLog mylog.log
> : </VirtualHost>
> :
> : My problem is that apache is not serving up the contents in staticserve,
> : tomcat is
> :
> : I think I am just missing something small, any ideas?
>
> Yes -- the "JKMount /* ajp13" directive will pass everything to the JK
> handler.
>
> -QM
>
> --
>
> software -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Serving up static content through apache using mod_jk
Posted by QM <qm...@brandxdev.net>.
On Thu, Jun 03, 2004 at 11:26:52AM -0300, James Sherwood wrote:
: <VirtualHost *>
: ServerAdmin me@mydomain.com
: DocumentRoot %pathtoapache%/htdocs/staticserve
: ServerName mydomain.ca
: JKMount /* ajp13
: ErrorLog mylog.log
: </VirtualHost>
:
: My problem is that apache is not serving up the contents in staticserve,
: tomcat is
:
: I think I am just missing something small, any ideas?
Yes -- the "JKMount /* ajp13" directive will pass everything to the JK
handler.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org