You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pascal Forget <to...@ubeans.com> on 2003/01/24 21:40:38 UTC
Apache to JKMount everything
Hi,
I would like Apache to redirect _everything_ to tomcat. But it
has to be done through mod_jk.
I tried JkMount * tomcat but it doesn't work. I did
put things such as JkMount *.jsp tomcat and that works,
but my main problem is that even though I have put
DirectoryIndex index.jsp in httpd.conf, http://www.foobar.com/index.jsp
works but http://www.foobar.com/ gives me a directory listing.
Please help,
Pascal Forget
tomcatdev@ubeans.com
pascal.forget@videotron.ca
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Apache to JKMount everything
Posted by Pascal Forget <to...@ubeans.com>.
Lajos wrote:
> You can do:
>
> JkMount /* ajp13
> JkMount /*.jsp ajp13
>
> where "ajp13" refers to the worker name in workers.properties. But if
> you are doing that, why use Apache?
Because Apache may startup as root (because of port 80 or 443) while
tomcat runs as nobody
Pascal
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Apache to JKMount everything
Posted by Lajos <lm...@galatea.com>.
You can do:
JkMount /* ajp13
JkMount /*.jsp ajp13
where "ajp13" refers to the worker name in workers.properties. But if
you are doing that, why use Apache?
Regards,
Lajos
Richie Chauhan wrote:
> I'm fairly new to all of this but try
>
> 1) JkMount /*.jsp local_ajp13
> 2) DirectoryIndex index.jsp
>
> I think this means anything that matches the url *.jsp under the / context
> is to be handled by jsp.
>
> The DirectoryIndex part of it just lets apache know which pages to fetch
> when it encounters www.adsf.com/
>
> Richie
>
>
> -----Original Message-----
> From: Pascal Forget [mailto:tomcatdev@ubeans.com]
> Sent: Friday, January 24, 2003 12:41 PM
> To: Tomcat Users List
> Subject: Apache to JKMount everything
>
>
> Hi,
>
> I would like Apache to redirect _everything_ to tomcat. But it
> has to be done through mod_jk.
>
> I tried JkMount * tomcat but it doesn't work. I did
> put things such as JkMount *.jsp tomcat and that works,
> but my main problem is that even though I have put
> DirectoryIndex index.jsp in httpd.conf, http://www.foobar.com/index.jsp
> works but http://www.foobar.com/ gives me a directory listing.
>
> Please help,
>
> Pascal Forget
> tomcatdev@ubeans.com
> pascal.forget@videotron.ca
>
>
>
> --
> 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>
>
>
--
Lajos Moczar
----------------------------------------
Open Source Support, Consulting and Training
----------------------------------------
Cocoon Developer's Handbook
(www.amazon.com/exec/obidos/tg/detail/-/0672322579)
_ _____
/ \ /
/___\ /
/ \ /____
http://www.galatea.com -- powered by AzSSL
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Apache to JKMount everything
Posted by Richie Chauhan <ri...@ajava.biz>.
I'm fairly new to all of this but try
1) JkMount /*.jsp local_ajp13
2) DirectoryIndex index.jsp
I think this means anything that matches the url *.jsp under the / context
is to be handled by jsp.
The DirectoryIndex part of it just lets apache know which pages to fetch
when it encounters www.adsf.com/
Richie
-----Original Message-----
From: Pascal Forget [mailto:tomcatdev@ubeans.com]
Sent: Friday, January 24, 2003 12:41 PM
To: Tomcat Users List
Subject: Apache to JKMount everything
Hi,
I would like Apache to redirect _everything_ to tomcat. But it
has to be done through mod_jk.
I tried JkMount * tomcat but it doesn't work. I did
put things such as JkMount *.jsp tomcat and that works,
but my main problem is that even though I have put
DirectoryIndex index.jsp in httpd.conf, http://www.foobar.com/index.jsp
works but http://www.foobar.com/ gives me a directory listing.
Please help,
Pascal Forget
tomcatdev@ubeans.com
pascal.forget@videotron.ca
--
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>