You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gerald Koh <ge...@tumosolutions.com> on 2001/06/04 21:23:42 UTC
how to put jsp files in regular apache root?
Hi, I have redhat 7.1 running apache 1.3.19 and tomcat 3.2.2. right now it
is working, but there are a few outstanding issues. Please keep my
newbieness in mind when answering:
1. I think tomcat is serving the static pages as well as the jsps. There
are directions on how to change this, but read #2 first.
2. the jsp's currently need to reside in the webapps directory, I think. I
need to hold the jsps in the same directory as the html. Can I do this?
Thanks in advance!
g
--
Gerald Koh | Site Building | Tumo Solutions | Vail, Colorado
v: 970.949.4111 x15 | e: gerald@tumosolutions.com
--
"The only source of knowledge is experience" - Albert Einstein
Re: how to put jsp files in regular apache root?
Posted by Michael Jennings <so...@home.com>.
I'm not sure about that one...
Try using a context path of "", also, you could try "*.jsp" that might also
work.
You could also try just running tomcat as your web server! Just change the
"8080"
in server.xml to "80"
Have you read through the tomcat docs?
-Mike
----- Original Message -----
From: "Gerald Koh" <ge...@tumosolutions.com>
To: "Michael Jennings" <so...@home.com>;
<to...@jakarta.apache.org>
Sent: Monday, June 04, 2001 4:06 PM
Subject: RE: how to put jsp files in regular apache root?
> Thanks for the info.. one more question... I would like to be able to run
> jsps in the root, as well as in several subfolders. Do the contexts
inherit
> to each subfolder, or should I explicitly declare all subfolders as new
> contexts?
>
>
> Here's what I'm looking at:
>
> <Context path="/"
> docBase="/var/www/html/"
> crossContext="false"
> debug="0"
> reloadable="true" >
> </Context>
>
> to try to be able to put jsps in the root (like index.jsp, for example).
I
> will have several subfolders for projects that may also have jsps in them.
>
> Will this work?
>
> Thanks for your help!
>
> g
>
> --
> Gerald Koh | Site Building | Tumo Solutions | Vail, Colorado
> v: 970.949.4111 x15 | e: gerald@tumosolutions.com
>
> --
>
> "The only source of knowledge is experience" - Albert Einstein
>
> -----Original Message-----
> From: Michael Jennings [mailto:southgate.software@home.com]
> Sent: Monday, June 04, 2001 3:23 PM
> To: tomcat-user@jakarta.apache.org; gerald@tumosolutions.com
> Subject: Re: how to put jsp files in regular apache root?
>
> Just have a look at $TOMCAT_HOME/server.xml
>
> you'll see an entry that looks like:
>
> <Context path="/examples"
> docBase="webapps/examples"
> crossContext="false"
> debug="0"
> reloadable="true" >
> </Context>
>
> Just make another entry right after it with a different docBase and path,
> for example:
>
> <Context path="/geraldjsp"
> docBase="/home/gerald/jsp"
> crossContext="false"
> debug="0"
> reloadable="true" >
> </Context>
>
> then the next time you restart tomcat, it'll make a new
> conf/mod_jk.conf-auto that'll have all
> of the stuff that mod_jk.so needs to intercept any urls that look like
> "/geraldjsp"
> You'll need to restart apache so that apache will re-read httpd.conf,
which
> in in turn
> make apache re-read the mod_jk.conf-auto
>
> Hope this helps!
> -Mike
>
>
> ----- Original Message -----
> From: "Gerald Koh" <ge...@tumosolutions.com>
> To: "Tomcat User" <to...@jakarta.apache.org>
> Sent: Monday, June 04, 2001 12:23 PM
> Subject: how to put jsp files in regular apache root?
>
>
> > Hi, I have redhat 7.1 running apache 1.3.19 and tomcat 3.2.2. right now
it
> > is working, but there are a few outstanding issues. Please keep my
> > newbieness in mind when answering:
> >
> > 1. I think tomcat is serving the static pages as well as the jsps.
There
> > are directions on how to change this, but read #2 first.
> > 2. the jsp's currently need to reside in the webapps directory, I think.
> I
> > need to hold the jsps in the same directory as the html. Can I do this?
> >
> > Thanks in advance!
> >
> > g
> >
> > --
> > Gerald Koh | Site Building | Tumo Solutions | Vail, Colorado
> > v: 970.949.4111 x15 | e: gerald@tumosolutions.com
> >
> > --
> >
> > "The only source of knowledge is experience" - Albert Einstein
> >
> >
>
RE: how to put jsp files in regular apache root?
Posted by Gerald Koh <ge...@tumosolutions.com>.
Thanks for the info.. one more question... I would like to be able to run
jsps in the root, as well as in several subfolders. Do the contexts inherit
to each subfolder, or should I explicitly declare all subfolders as new
contexts?
Here's what I'm looking at:
<Context path="/"
docBase="/var/www/html/"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
to try to be able to put jsps in the root (like index.jsp, for example). I
will have several subfolders for projects that may also have jsps in them.
Will this work?
Thanks for your help!
g
--
Gerald Koh | Site Building | Tumo Solutions | Vail, Colorado
v: 970.949.4111 x15 | e: gerald@tumosolutions.com
--
"The only source of knowledge is experience" - Albert Einstein
-----Original Message-----
From: Michael Jennings [mailto:southgate.software@home.com]
Sent: Monday, June 04, 2001 3:23 PM
To: tomcat-user@jakarta.apache.org; gerald@tumosolutions.com
Subject: Re: how to put jsp files in regular apache root?
Just have a look at $TOMCAT_HOME/server.xml
you'll see an entry that looks like:
<Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
Just make another entry right after it with a different docBase and path,
for example:
<Context path="/geraldjsp"
docBase="/home/gerald/jsp"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
then the next time you restart tomcat, it'll make a new
conf/mod_jk.conf-auto that'll have all
of the stuff that mod_jk.so needs to intercept any urls that look like
"/geraldjsp"
You'll need to restart apache so that apache will re-read httpd.conf, which
in in turn
make apache re-read the mod_jk.conf-auto
Hope this helps!
-Mike
----- Original Message -----
From: "Gerald Koh" <ge...@tumosolutions.com>
To: "Tomcat User" <to...@jakarta.apache.org>
Sent: Monday, June 04, 2001 12:23 PM
Subject: how to put jsp files in regular apache root?
> Hi, I have redhat 7.1 running apache 1.3.19 and tomcat 3.2.2. right now it
> is working, but there are a few outstanding issues. Please keep my
> newbieness in mind when answering:
>
> 1. I think tomcat is serving the static pages as well as the jsps. There
> are directions on how to change this, but read #2 first.
> 2. the jsp's currently need to reside in the webapps directory, I think.
I
> need to hold the jsps in the same directory as the html. Can I do this?
>
> Thanks in advance!
>
> g
>
> --
> Gerald Koh | Site Building | Tumo Solutions | Vail, Colorado
> v: 970.949.4111 x15 | e: gerald@tumosolutions.com
>
> --
>
> "The only source of knowledge is experience" - Albert Einstein
>
>
Re: how to put jsp files in regular apache root?
Posted by Michael Jennings <so...@home.com>.
Just have a look at $TOMCAT_HOME/server.xml
you'll see an entry that looks like:
<Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
Just make another entry right after it with a different docBase and path,
for example:
<Context path="/geraldjsp"
docBase="/home/gerald/jsp"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
then the next time you restart tomcat, it'll make a new
conf/mod_jk.conf-auto that'll have all
of the stuff that mod_jk.so needs to intercept any urls that look like
"/geraldjsp"
You'll need to restart apache so that apache will re-read httpd.conf, which
in in turn
make apache re-read the mod_jk.conf-auto
Hope this helps!
-Mike
----- Original Message -----
From: "Gerald Koh" <ge...@tumosolutions.com>
To: "Tomcat User" <to...@jakarta.apache.org>
Sent: Monday, June 04, 2001 12:23 PM
Subject: how to put jsp files in regular apache root?
> Hi, I have redhat 7.1 running apache 1.3.19 and tomcat 3.2.2. right now it
> is working, but there are a few outstanding issues. Please keep my
> newbieness in mind when answering:
>
> 1. I think tomcat is serving the static pages as well as the jsps. There
> are directions on how to change this, but read #2 first.
> 2. the jsp's currently need to reside in the webapps directory, I think.
I
> need to hold the jsps in the same directory as the html. Can I do this?
>
> Thanks in advance!
>
> g
>
> --
> Gerald Koh | Site Building | Tumo Solutions | Vail, Colorado
> v: 970.949.4111 x15 | e: gerald@tumosolutions.com
>
> --
>
> "The only source of knowledge is experience" - Albert Einstein
>
>