RE: how to put jsp files in regular apache root?

2001-06-05 Thread Swart, James (Jim) ** CTR **

yes.. that gives me an idea.. in apache/tomcat config can you put in a
wildcard proxy for like /*.jsp http://localhost:8080/*.jsp or even /*.jsp to
http://localhost:8080/myjspfolderhere/*.jsp ?I know IBM's IHS has this
option but I am not sure if wildcards are natively supported in apache.
Anyone?

-Original Message-
From: Michael Jennings [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 5:15 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: how to put jsp files in regular apache root?


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" <[EMAIL PROTECTED]>
To: "Michael Jennings" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
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:
>
>  docBase="/var/www/html/"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> 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: [EMAIL PROTECTED]
>
> --
>
> "The only source of knowledge is experience" -  Albert Einstein
>
> -Original Message-
> From: Michael Jennings [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001 3:23 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> 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:
>
>  docBase="webapps/examples"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> Just make another entry right after it with a different docBase and path,
> for example:
>
>  docBase="/home/gerald/jsp"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> 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" <[EMAIL PROTECTED]>
> To: "Tomcat User" <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> >
> > --
> >
> > "The only source of knowledge is experience" -  Albert Einstein
> >
> >
>



Re: how to put jsp files in regular apache root?

2001-06-04 Thread Michael Jennings

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" <[EMAIL PROTECTED]>
To: "Michael Jennings" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
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:
>
>  docBase="/var/www/html/"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> 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: [EMAIL PROTECTED]
>
> --
>
> "The only source of knowledge is experience" -  Albert Einstein
>
> -Original Message-
> From: Michael Jennings [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001 3:23 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> 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:
>
>  docBase="webapps/examples"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> Just make another entry right after it with a different docBase and path,
> for example:
>
>  docBase="/home/gerald/jsp"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
>
> 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" <[EMAIL PROTECTED]>
> To: "Tomcat User" <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> >
> > --
> >
> > "The only source of knowledge is experience" -  Albert Einstein
> >
> >
>




RE: how to put jsp files in regular apache root?

2001-06-04 Thread Gerald Koh

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:

   


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: [EMAIL PROTECTED]

--

"The only source of knowledge is experience" -  Albert Einstein

-Original Message-
From: Michael Jennings [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 3:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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:

   


Just make another entry right after it with a different docBase and path,
for example:

   


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" <[EMAIL PROTECTED]>
To: "Tomcat User" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
>
> --
>
> "The only source of knowledge is experience" -  Albert Einstein
>
>




Re: how to put jsp files in regular apache root?

2001-06-04 Thread Michael Jennings

Just have a look at $TOMCAT_HOME/server.xml

you'll see an entry that looks like:

   


Just make another entry right after it with a different docBase and path,
for example:

   


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" <[EMAIL PROTECTED]>
To: "Tomcat User" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
>
> --
>
> "The only source of knowledge is experience" -  Albert Einstein
>
>




RE: how to put jsp files in regular apache root?

2001-06-04 Thread Swart, James (Jim) ** CTR **

why do you need to hold the jsp's in the same dir as the html?

You would really need to put your html in your tomcat jsp dir and just let
tomcat serve the static html that is calling the jsp's (I think).
you could put in a redirect for your *old* content path to point to the new
tomcat one to prevent changing your source.

??

-Original Message-
From: Gerald Koh [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 1:24 PM
To: Tomcat User
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: [EMAIL PROTECTED]

--

"The only source of knowledge is experience" -  Albert Einstein




how to put jsp files in regular apache root?

2001-06-04 Thread Gerald Koh

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: [EMAIL PROTECTED]

--

"The only source of knowledge is experience" -  Albert Einstein