RE: Calling a JSP from a virtual host

2004-01-16 Thread Oscar Carrillo
To follow up here, I setup Virtual Hosts in Apache and have each Virtual 
Host have it's own webapp. I also tried it so that each Virtual Host uses 
the same webapp. In addition, I setup https (cannot do virtual hosts for 
https), and it has it's own webapp. It sort of works like virtual hosts in 
that connecting to https://www.domain1.com and https://www.domain2.com 
each connects to the same webapp.

It should pretty much work like I put on my website, but I'm going thru it 
and soon putting up a more accurate account.

Oscar
http://daydream.stanford.edu/tomcat/install_web_services.html

On Thu, 15 Jan 2004, Oscar Carrillo wrote:

 I've only setup one Virtual Host. Tomorrow I'm setting up multiple, so 
 I'll let you know how it goes and provide the configuration.
 
 I understand that you're wanting a different webapp for each virtual host.
 
 Oscar
 
 On Thu, 15 Jan 2004, Dolores García-Izquierdo Jaén wrote:
 
  Hi,
  
  Thank you guys for your answers.
  Oscar, I followed the instructions in your HOWTO but it didn't work.
  I'm not sure if I made myself clear yesterday explaining my problem. What I
  want to do is to have, for each virtual host in Apache, its respective web
  application in Tomcat so as I can isolate the JSP code for every Apache
  domain inside its own Tomcat application.
  Right now I can only access the JSP pages from one of the virtual hosts, the
  first one, the default one. If I want to access from any other virtual host
  (let's say from www.anyVirtualHost.com) I must use
  http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp instead of
  http://www.anyVirtualHost.com/anyTomcatApp/myJspPage.jsp
  
  Any help would be appreciated. Thanks again,
  Dolores
  
  -Original Message-
  From: Oscar Carrillo [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, 14 January, 2004 22:50
  To: Tomcat Users List
  Subject: Re: Calling a JSP from a virtual host
  
  
  Hi,
  
  I believe you need to do the jkmounts in each VirtualHost config in
  httpd.conf.
  
  And, I think, you must not use the auto-generated mod_jk.conf.
  
  It should work as explained in my HOWTO:
  http://daydream.stanford.edu/tomcat/install_web_services.html
  
  Eventhough, I reference Linux, Tomcat and Apache configuration should be
  the same, I presume.
  
  Oscar
  
  On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote:
  
Hi everyone.
  
   I have the next configuration in my server:
   - Windows 2000 - sorry, no chance to use Linux :-(
   - Apache 2, with some virtual hosts
   - Tomcat 1.4, with some JSP webapps
   - mod_jk, to communicate Apache and Tomcat.
  
  
   I have the whole static code in Apache, and the JSP code in Tomcat.
   Everything works fine, but I think there is something that it's not going
  as
   it should. I'll explain it:
  
   Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary
  one,
   the default one), myvirtualhost2 and myvirtualhost3, and a copy of
   index.html and index.jsp pages is inside each of those applications.
   http://www.myvirtualhost1.com/index.html -- shows ok
   http://www.myvirtualhost2.com/index.html -- shows ok
   http://www.myvirtualhost3.com/index.html -- shows ok
  
   And I have 1 webapp defined in Tomcat, myWebapp:
   http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok
  
   The problem comes here, as I can only call a JSP page through the
  default
   website in Apache:
   http://www.myvirtualhost2.com/myWebapp/index.jsp or
   http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find
  the
   page). The only thing that works is
   http://www.myvirtualhost1.com/myWebapp/index.jsp
  
   Is it possible to make this work? How can I call any JSP page in Tomcat
  from
   any of my virtual hosts in Apache?
  
   I've looked for information all over the Internet and the archives of this
   mailing list, but I couldn't find any solution (found one but it's only
   valid for mod_jk2 - it didn't work for mod_jk)
  
   Thanks in advance
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Calling a JSP from a virtual host

2004-01-15 Thread Dolores García-Izquierdo Jaén
Hi,

Thank you guys for your answers.
Oscar, I followed the instructions in your HOWTO but it didn't work.
I'm not sure if I made myself clear yesterday explaining my problem. What I
want to do is to have, for each virtual host in Apache, its respective web
application in Tomcat so as I can isolate the JSP code for every Apache
domain inside its own Tomcat application.
Right now I can only access the JSP pages from one of the virtual hosts, the
first one, the default one. If I want to access from any other virtual host
(let's say from www.anyVirtualHost.com) I must use
http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp instead of
http://www.anyVirtualHost.com/anyTomcatApp/myJspPage.jsp

Any help would be appreciated. Thanks again,
Dolores

-Original Message-
From: Oscar Carrillo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 14 January, 2004 22:50
To: Tomcat Users List
Subject: Re: Calling a JSP from a virtual host


Hi,

I believe you need to do the jkmounts in each VirtualHost config in
httpd.conf.

And, I think, you must not use the auto-generated mod_jk.conf.

It should work as explained in my HOWTO:
http://daydream.stanford.edu/tomcat/install_web_services.html

Eventhough, I reference Linux, Tomcat and Apache configuration should be
the same, I presume.

Oscar

On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote:

  Hi everyone.

 I have the next configuration in my server:
 - Windows 2000 - sorry, no chance to use Linux :-(
 - Apache 2, with some virtual hosts
 - Tomcat 1.4, with some JSP webapps
 - mod_jk, to communicate Apache and Tomcat.


 I have the whole static code in Apache, and the JSP code in Tomcat.
 Everything works fine, but I think there is something that it's not going
as
 it should. I'll explain it:

 Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary
one,
 the default one), myvirtualhost2 and myvirtualhost3, and a copy of
 index.html and index.jsp pages is inside each of those applications.
 http://www.myvirtualhost1.com/index.html -- shows ok
 http://www.myvirtualhost2.com/index.html -- shows ok
 http://www.myvirtualhost3.com/index.html -- shows ok

 And I have 1 webapp defined in Tomcat, myWebapp:
 http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok

 The problem comes here, as I can only call a JSP page through the
default
 website in Apache:
 http://www.myvirtualhost2.com/myWebapp/index.jsp or
 http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find
the
 page). The only thing that works is
 http://www.myvirtualhost1.com/myWebapp/index.jsp

 Is it possible to make this work? How can I call any JSP page in Tomcat
from
 any of my virtual hosts in Apache?

 I've looked for information all over the Internet and the archives of this
 mailing list, but I couldn't find any solution (found one but it's only
 valid for mod_jk2 - it didn't work for mod_jk)

 Thanks in advance


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Calling a JSP from a virtual host

2004-01-15 Thread Oscar Carrillo
I've only setup one Virtual Host. Tomorrow I'm setting up multiple, so 
I'll let you know how it goes and provide the configuration.

I understand that you're wanting a different webapp for each virtual host.

Oscar

On Thu, 15 Jan 2004, Dolores García-Izquierdo Jaén wrote:

 Hi,
 
 Thank you guys for your answers.
 Oscar, I followed the instructions in your HOWTO but it didn't work.
 I'm not sure if I made myself clear yesterday explaining my problem. What I
 want to do is to have, for each virtual host in Apache, its respective web
 application in Tomcat so as I can isolate the JSP code for every Apache
 domain inside its own Tomcat application.
 Right now I can only access the JSP pages from one of the virtual hosts, the
 first one, the default one. If I want to access from any other virtual host
 (let's say from www.anyVirtualHost.com) I must use
 http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp instead of
 http://www.anyVirtualHost.com/anyTomcatApp/myJspPage.jsp
 
 Any help would be appreciated. Thanks again,
 Dolores
 
 -Original Message-
 From: Oscar Carrillo [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 14 January, 2004 22:50
 To: Tomcat Users List
 Subject: Re: Calling a JSP from a virtual host
 
 
 Hi,
 
 I believe you need to do the jkmounts in each VirtualHost config in
 httpd.conf.
 
 And, I think, you must not use the auto-generated mod_jk.conf.
 
 It should work as explained in my HOWTO:
 http://daydream.stanford.edu/tomcat/install_web_services.html
 
 Eventhough, I reference Linux, Tomcat and Apache configuration should be
 the same, I presume.
 
 Oscar
 
 On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote:
 
   Hi everyone.
 
  I have the next configuration in my server:
  - Windows 2000 - sorry, no chance to use Linux :-(
  - Apache 2, with some virtual hosts
  - Tomcat 1.4, with some JSP webapps
  - mod_jk, to communicate Apache and Tomcat.
 
 
  I have the whole static code in Apache, and the JSP code in Tomcat.
  Everything works fine, but I think there is something that it's not going
 as
  it should. I'll explain it:
 
  Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary
 one,
  the default one), myvirtualhost2 and myvirtualhost3, and a copy of
  index.html and index.jsp pages is inside each of those applications.
  http://www.myvirtualhost1.com/index.html -- shows ok
  http://www.myvirtualhost2.com/index.html -- shows ok
  http://www.myvirtualhost3.com/index.html -- shows ok
 
  And I have 1 webapp defined in Tomcat, myWebapp:
  http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok
 
  The problem comes here, as I can only call a JSP page through the
 default
  website in Apache:
  http://www.myvirtualhost2.com/myWebapp/index.jsp or
  http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find
 the
  page). The only thing that works is
  http://www.myvirtualhost1.com/myWebapp/index.jsp
 
  Is it possible to make this work? How can I call any JSP page in Tomcat
 from
  any of my virtual hosts in Apache?
 
  I've looked for information all over the Internet and the archives of this
  mailing list, but I couldn't find any solution (found one but it's only
  valid for mod_jk2 - it didn't work for mod_jk)
 
  Thanks in advance
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Calling a JSP from a virtual host

2004-01-15 Thread Howard Watson
Are all of your named VirturalHosts registered in DNS? What error are
you getting?

Just for funnies try using:

Listen ipAddrOfVirtualHost.com
VirtualHost ipAddrOfVirtualHost.com
   ServerName defaultVirtualHost.com
 more  working defaultVirtualHost.com stuff
   jkMount webapp
/VirtualHost

Listen ipAddrOfVirtualHost.com:5
VirtualHost ipAddrOfVirtualHost.com:5
   ServerName defaultVirtualHost.com
  more virtualHost2 stuff
   jkMount webapp
/VirtualHost

This should still work:
http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp

This should access the webapp from VH2:
http://www.defaultVirtualHost.com:5/anyTomcatApp/myJspPage.jsp

Howard

 [EMAIL PROTECTED] 01/15/04 02:08AM 
Hi,

Thank you guys for your answers.
Oscar, I followed the instructions in your HOWTO but it didn't work.
I'm not sure if I made myself clear yesterday explaining my problem.
What I
want to do is to have, for each virtual host in Apache, its respective
web
application in Tomcat so as I can isolate the JSP code for every
Apache
domain inside its own Tomcat application.
Right now I can only access the JSP pages from one of the virtual
hosts, the
first one, the default one. If I want to access from any other virtual
host
(let's say from www.anyVirtualHost.com) I must use
http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp instead
of
http://www.anyVirtualHost.com/anyTomcatApp/myJspPage.jsp 

Any help would be appreciated. Thanks again,
Dolores

-Original Message-
From: Oscar Carrillo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 14 January, 2004 22:50
To: Tomcat Users List
Subject: Re: Calling a JSP from a virtual host


Hi,

I believe you need to do the jkmounts in each VirtualHost config in
httpd.conf.

And, I think, you must not use the auto-generated mod_jk.conf.

It should work as explained in my HOWTO:
http://daydream.stanford.edu/tomcat/install_web_services.html 

Eventhough, I reference Linux, Tomcat and Apache configuration should
be
the same, I presume.

Oscar

On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote:

  Hi everyone.

 I have the next configuration in my server:
 - Windows 2000 - sorry, no chance to use Linux :-(
 - Apache 2, with some virtual hosts
 - Tomcat 1.4, with some JSP webapps
 - mod_jk, to communicate Apache and Tomcat.


 I have the whole static code in Apache, and the JSP code in Tomcat.
 Everything works fine, but I think there is something that it's not
going
as
 it should. I'll explain it:

 Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the
primary
one,
 the default one), myvirtualhost2 and myvirtualhost3, and a copy of
 index.html and index.jsp pages is inside each of those applications.
 http://www.myvirtualhost1.com/index.html -- shows ok
 http://www.myvirtualhost2.com/index.html -- shows ok
 http://www.myvirtualhost3.com/index.html -- shows ok

 And I have 1 webapp defined in Tomcat, myWebapp:
 http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok

 The problem comes here, as I can only call a JSP page through the
default
 website in Apache:
 http://www.myvirtualhost2.com/myWebapp/index.jsp or
 http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't
find
the
 page). The only thing that works is
 http://www.myvirtualhost1.com/myWebapp/index.jsp 

 Is it possible to make this work? How can I call any JSP page in
Tomcat
from
 any of my virtual hosts in Apache?

 I've looked for information all over the Internet and the archives of
this
 mailing list, but I couldn't find any solution (found one but it's
only
 valid for mod_jk2 - it didn't work for mod_jk)

 Thanks in advance



-
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Calling a JSP from a virtual host

2004-01-14 Thread Oscar Carrillo
Hi,

I believe you need to do the jkmounts in each VirtualHost config in 
httpd.conf.

And, I think, you must not use the auto-generated mod_jk.conf.

It should work as explained in my HOWTO:
http://daydream.stanford.edu/tomcat/install_web_services.html

Eventhough, I reference Linux, Tomcat and Apache configuration should be
the same, I presume.

Oscar

On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote:

  Hi everyone.
 
 I have the next configuration in my server:
 - Windows 2000 - sorry, no chance to use Linux :-(
 - Apache 2, with some virtual hosts
 - Tomcat 1.4, with some JSP webapps
 - mod_jk, to communicate Apache and Tomcat.
 
 
 I have the whole static code in Apache, and the JSP code in Tomcat.
 Everything works fine, but I think there is something that it's not going as
 it should. I'll explain it:
 
 Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary one,
 the default one), myvirtualhost2 and myvirtualhost3, and a copy of
 index.html and index.jsp pages is inside each of those applications.
 http://www.myvirtualhost1.com/index.html -- shows ok
 http://www.myvirtualhost2.com/index.html -- shows ok
 http://www.myvirtualhost3.com/index.html -- shows ok
 
 And I have 1 webapp defined in Tomcat, myWebapp:
 http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok
 
 The problem comes here, as I can only call a JSP page through the default
 website in Apache:
 http://www.myvirtualhost2.com/myWebapp/index.jsp or
 http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find the
 page). The only thing that works is
 http://www.myvirtualhost1.com/myWebapp/index.jsp
 
 Is it possible to make this work? How can I call any JSP page in Tomcat from
 any of my virtual hosts in Apache?
 
 I've looked for information all over the Internet and the archives of this
 mailing list, but I couldn't find any solution (found one but it's only
 valid for mod_jk2 - it didn't work for mod_jk)
 
 Thanks in advance
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Calling a JSP from a virtual host

2004-01-14 Thread Howard Watson
I not 100% sure but I think the problem might be here:

And I have 1 webapp defined in Tomcat


 [EMAIL PROTECTED] 01/14/04 03:48PM 
 Hi everyone.

I have the next configuration in my server:
- Windows 2000 - sorry, no chance to use Linux :-(
- Apache 2, with some virtual hosts
- Tomcat 1.4, with some JSP webapps
- mod_jk, to communicate Apache and Tomcat.


I have the whole static code in Apache, and the JSP code in Tomcat.
Everything works fine, but I think there is something that it's not
going as
it should. I'll explain it:

Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary
one,
the default one), myvirtualhost2 and myvirtualhost3, and a copy of
index.html and index.jsp pages is inside each of those applications.
http://www.myvirtualhost1.com/index.html -- shows ok
http://www.myvirtualhost2.com/index.html -- shows ok
http://www.myvirtualhost3.com/index.html -- shows ok

And I have 1 webapp defined in Tomcat, myWebapp:
http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok

The problem comes here, as I can only call a JSP page through the
default
website in Apache:
http://www.myvirtualhost2.com/myWebapp/index.jsp or
http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find
the
page). The only thing that works is
http://www.myvirtualhost1.com/myWebapp/index.jsp 

Is it possible to make this work? How can I call any JSP page in Tomcat
from
any of my virtual hosts in Apache?

I've looked for information all over the Internet and the archives of
this
mailing list, but I couldn't find any solution (found one but it's
only
valid for mod_jk2 - it didn't work for mod_jk)

Thanks in advance


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Calling a JSP from a virtual host

2004-01-14 Thread Oscar Carrillo
I assumed he meant he wanted to access the same webapp in Tomcat in each 
virtual host in Apache. In that case, he only wants and only needs 1 
webapp in Tomcat.

Oscar

On Wed, 14 Jan 2004, Howard Watson wrote:

 I not 100% sure but I think the problem might be here:
 
 And I have 1 webapp defined in Tomcat
 
 
  [EMAIL PROTECTED] 01/14/04 03:48PM 
  Hi everyone.
 
 I have the next configuration in my server:
 - Windows 2000 - sorry, no chance to use Linux :-(
 - Apache 2, with some virtual hosts
 - Tomcat 1.4, with some JSP webapps
 - mod_jk, to communicate Apache and Tomcat.
 
 
 I have the whole static code in Apache, and the JSP code in Tomcat.
 Everything works fine, but I think there is something that it's not
 going as
 it should. I'll explain it:
 
 Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary
 one,
 the default one), myvirtualhost2 and myvirtualhost3, and a copy of
 index.html and index.jsp pages is inside each of those applications.
 http://www.myvirtualhost1.com/index.html -- shows ok
 http://www.myvirtualhost2.com/index.html -- shows ok
 http://www.myvirtualhost3.com/index.html -- shows ok
 
 And I have 1 webapp defined in Tomcat, myWebapp:
 http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok
 
 The problem comes here, as I can only call a JSP page through the
 default
 website in Apache:
 http://www.myvirtualhost2.com/myWebapp/index.jsp or
 http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find
 the
 page). The only thing that works is
 http://www.myvirtualhost1.com/myWebapp/index.jsp 
 
 Is it possible to make this work? How can I call any JSP page in Tomcat
 from
 any of my virtual hosts in Apache?
 
 I've looked for information all over the Internet and the archives of
 this
 mailing list, but I couldn't find any solution (found one but it's
 only
 valid for mod_jk2 - it didn't work for mod_jk)
 
 Thanks in advance
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Calling a JSP from a virtual host

2004-01-14 Thread Howard Watson
I stand corrected.

I don't know about the auto-generated mod_jk.conf, but your right about
needing to mount the JSPs and servlets in each virtual host. And
probably any matching aliases.

Thanks for clearing up the confusion. Do you know any good references
for using LogSetter within a Tomcat3.3 Context? If you do I'd like to
hear about it?

 [EMAIL PROTECTED] 01/14/04 03:27PM 
I assumed he meant he wanted to access the same webapp in Tomcat in
each 
virtual host in Apache. In that case, he only wants and only needs 1 
webapp in Tomcat.

Oscar

On Wed, 14 Jan 2004, Howard Watson wrote:

 I not 100% sure but I think the problem might be here:
 
 And I have 1 webapp defined in Tomcat
 
 
  [EMAIL PROTECTED] 01/14/04 03:48PM 
  Hi everyone.
 
 I have the next configuration in my server:
 - Windows 2000 - sorry, no chance to use Linux :-(
 - Apache 2, with some virtual hosts
 - Tomcat 1.4, with some JSP webapps
 - mod_jk, to communicate Apache and Tomcat.
 
 
 I have the whole static code in Apache, and the JSP code in Tomcat.
 Everything works fine, but I think there is something that it's not
 going as
 it should. I'll explain it:
 
 Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the
primary
 one,
 the default one), myvirtualhost2 and myvirtualhost3, and a copy of
 index.html and index.jsp pages is inside each of those applications.
 http://www.myvirtualhost1.com/index.html -- shows ok
 http://www.myvirtualhost2.com/index.html -- shows ok
 http://www.myvirtualhost3.com/index.html -- shows ok
 
 And I have 1 webapp defined in Tomcat, myWebapp:
 http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok
 
 The problem comes here, as I can only call a JSP page through the
 default
 website in Apache:
 http://www.myvirtualhost2.com/myWebapp/index.jsp or
 http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't
find
 the
 page). The only thing that works is
 http://www.myvirtualhost1.com/myWebapp/index.jsp 
 
 Is it possible to make this work? How can I call any JSP page in
Tomcat
 from
 any of my virtual hosts in Apache?
 
 I've looked for information all over the Internet and the archives
of
 this
 mailing list, but I couldn't find any solution (found one but it's
 only
 valid for mod_jk2 - it didn't work for mod_jk)
 
 Thanks in advance
 
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED]

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Calling a JSP from a virtual host

2004-01-14 Thread Oscar Carrillo
Sorry, don't have any experiences with those. I'm no expert in Tomcat, I 
just get lucky once in awhile and see a question I can answer :)

Oscar

On Wed, 14 Jan 2004, Howard Watson wrote:

 I stand corrected.
 
 I don't know about the auto-generated mod_jk.conf, but your right about
 needing to mount the JSPs and servlets in each virtual host. And
 probably any matching aliases.
 
 Thanks for clearing up the confusion. Do you know any good references
 for using LogSetter within a Tomcat3.3 Context? If you do I'd like to
 hear about it?
 
  [EMAIL PROTECTED] 01/14/04 03:27PM 
 I assumed he meant he wanted to access the same webapp in Tomcat in
 each 
 virtual host in Apache. In that case, he only wants and only needs 1 
 webapp in Tomcat.
 
 Oscar
 
 On Wed, 14 Jan 2004, Howard Watson wrote:
 
  I not 100% sure but I think the problem might be here:
  
  And I have 1 webapp defined in Tomcat
  
  
   [EMAIL PROTECTED] 01/14/04 03:48PM 
   Hi everyone.
  
  I have the next configuration in my server:
  - Windows 2000 - sorry, no chance to use Linux :-(
  - Apache 2, with some virtual hosts
  - Tomcat 1.4, with some JSP webapps
  - mod_jk, to communicate Apache and Tomcat.
  
  
  I have the whole static code in Apache, and the JSP code in Tomcat.
  Everything works fine, but I think there is something that it's not
  going as
  it should. I'll explain it:
  
  Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the
 primary
  one,
  the default one), myvirtualhost2 and myvirtualhost3, and a copy of
  index.html and index.jsp pages is inside each of those applications.
  http://www.myvirtualhost1.com/index.html -- shows ok
  http://www.myvirtualhost2.com/index.html -- shows ok
  http://www.myvirtualhost3.com/index.html -- shows ok
  
  And I have 1 webapp defined in Tomcat, myWebapp:
  http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok
  
  The problem comes here, as I can only call a JSP page through the
  default
  website in Apache:
  http://www.myvirtualhost2.com/myWebapp/index.jsp or
  http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't
 find
  the
  page). The only thing that works is
  http://www.myvirtualhost1.com/myWebapp/index.jsp 
  
  Is it possible to make this work? How can I call any JSP page in
 Tomcat
  from
  any of my virtual hosts in Apache?
  
  I've looked for information all over the Internet and the archives
 of
  this
  mailing list, but I couldn't find any solution (found one but it's
  only
  valid for mod_jk2 - it didn't work for mod_jk)
  
  Thanks in advance
  
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]