RE: app roll out.

2002-12-17 Thread Cox, Charlie
you could just define your context path= in server.xml. this should give
you what you want.

Charlie

 -Original Message-
 From: Alexander Wallace [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 7:40 PM
 To: Tomcat Users List
 Subject: Re: app roll out.
 
 
 Adding a line like the one you suggest doesn't seem to 
 work... People at 
 apache's irc said it should be something like:
 
 Redirect / http://www.domain.com/context
 
 But that only seems to create infinite redirects since it 
 redirects to the 
 same domain name.
 
 The docs say that redirect takes a URI and then a URL.
 
 Could you check your config files and paste one line here? 
 Just to make sure 
 the syntax is correct?
 
 Thanks!
 
 On Monday 16 December 2002 15:42, Ben Ricker wrote:
 
  Redirect temp www.domain.com www.domain.com/path-to-context
 
  Hth,
 
  Ben Ricker
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: app roll out.

2002-12-17 Thread Ben Ricker
Here is the line that workd for me in Apache 1.3.27 Are you using Apache
2.x?

Redirect temp /index.html http://main.wellinx.com/servlets/Logon?STATE=0USER=doctor

The '/' by itself may not work. When I set it up, I had to include the
'index.html'. But I do not remember because I set it up so long ago.

Ben Ricker


On Mon, 2002-12-16 at 18:40, Alexander Wallace wrote:
 Adding a line like the one you suggest doesn't seem to work... People at 
 apache's irc said it should be something like:
 
 Redirect / http://www.domain.com/context
 
 But that only seems to create infinite redirects since it redirects to the 
 same domain name.
 
 The docs say that redirect takes a URI and then a URL.
 
 Could you check your config files and paste one line here? Just to make sure 
 the syntax is correct?
 
 Thanks!
 
 On Monday 16 December 2002 15:42, Ben Ricker wrote:
 
  Redirect temp www.domain.com www.domain.com/path-to-context
 
  Hth,
 
  Ben Ricker
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




Re: app roll out.

2002-12-17 Thread Ben Ricker
On Mon, 2002-12-16 at 18:51, Alexander Wallace wrote:
 The line:
 
 RedirectMatch ^/$ http://mysite/theContext
 
 did the trick.
 
 Now I have to find out how to make apache call index.jsp automatically if no 
 page is requested.  If i use http://localhost:8080/myapp tomcat calls 
 index.jsp automatically, but when going through apache 
 (http://localhost/myapp) apache doesn't load the index.jsp.  
 
 How can i make it load index.jsp automatically?

You need to add the index.jsp to the possible DirectoryIndex
directive. For example:

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
IfModule mod_dir.c
DirectoryIndex index.html index.jsp
/IfModule

If you call a URL without a file spec, Apache will try all the files in
the DirectoryIndex directive utnil it his one.

Ben Ricker

 Thanks again!
 
 On Monday 16 December 2002 15:42, Ben Ricker wrote:
  This would be done by Apache (though it could possibly be done by
  Tomcat; I use Apache). You can do it one of two ways:
 
  1) Use mod_rewrite to rewrite /index.html to /path-to-context-name.
  Not sure on the mechanics of this. Try the Apache list for pointers, or
  any number of tutotials on mod_rewrite.
 
  2) Use the 'Redirect' directive in Apache. This is what I use and has
  worked for 2 years. Basically, you stick a line in your httpd.conf which
  goes:
 
  Redirect temp www.domain.com www.domain.com/path-to-context
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




Re: app roll out.

2002-12-17 Thread Alexander Wallace
My guess is that the solution with apache works becouse even if apache switces 
to https, it still talks to tomcat via plain http, and since the objects are 
in tomcat's session, and tomcat doesn't need to switch to https, it will not 
create a new session.

On Monday 16 December 2002 20:41, Joseph Shraibman wrote:
 But that doesn't explain why apache would be any better at that than
 tomcat.

 James Higginbotham wrote:
  That's probably the case if you were using cookies to track sessions.
  The cookie spec mentions that the port is also part of the scope of a
  cookie, so when you went from www.foo.com:80 to www.foo.com:443 you
  changed the scope of the original cookie and thus created a new
  session on the server side. The fix is to either change the cookie's
  domain to be foo.com rather than www.foo.com, which will make it match
  to all servers in that domain on all ports. At least, this seems to be
  what I remember the issue being several years ago for a similar
  deployment I did.

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


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




app roll out.

2002-12-16 Thread Alexander Wallace
Hi there. Almost ready to deploy my app to test in real world.  I'm using 
apache + tomcat (using mod_jk).  My app name is wxyz, and I have purchased 
the domain name i want it to be under. I want to call www.mydomain.com and 
get my app's index. instead of typing the www.mydomain.com/wxyz.

How can i do that? Can someone, if not tell me how, tell me where to read to 
learn how to do it?

Sorry about the newbienezz of the email. I know nothing about this things. 

Thanks!


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




Re: app roll out.

2002-12-16 Thread J. Norment
name the starting page of your app index.jsp ?

On Mon, 16 Dec 2002 15:28:39 -0600, Alexander Wallace wrote:
Hi there. Almost ready to deploy my app to test in real world.  I'm
using
apache + tomcat (using mod_jk).  My app name is wxyz, and I have
purchased
the domain name i want it to be under. I want to call
www.mydomain.com and
get my app's index. instead of typing the www.mydomain.com/wxyz.

How can i do that? Can someone, if not tell me how, tell me where to
read to
learn how to do it?

Sorry about the newbienezz of the email. I know nothing about this
things.

Thanks!


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




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




Re: app roll out.

2002-12-16 Thread Alexander Wallace
I have an index.jsp, and it works if i call www.mydomain.com/myapp, but i want 
to just call www.mydomain.com... I don't even knwo how to reffer to whay i 
need, it may be virtual domain?

On Monday 16 December 2002 15:33, J. Norment wrote:
 name the starting page of your app index.jsp ?

 On Mon, 16 Dec 2002 15:28:39 -0600, Alexander Wallace wrote:
 Hi there. Almost ready to deploy my app to test in real world.  I'm
 using
 apache + tomcat (using mod_jk).  My app name is wxyz, and I have
 purchased
 the domain name i want it to be under. I want to call
 www.mydomain.com and
 get my app's index. instead of typing the www.mydomain.com/wxyz.
 
 How can i do that? Can someone, if not tell me how, tell me where to
 read to
 learn how to do it?
 
 Sorry about the newbienezz of the email. I know nothing about this
 things.
 
 Thanks!
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]

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


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




Re: app roll out.

2002-12-16 Thread Ben Ricker
This would be done by Apache (though it could possibly be done by
Tomcat; I use Apache). You can do it one of two ways:

1) Use mod_rewrite to rewrite /index.html to /path-to-context-name.
Not sure on the mechanics of this. Try the Apache list for pointers, or
any number of tutotials on mod_rewrite.

2) Use the 'Redirect' directive in Apache. This is what I use and has
worked for 2 years. Basically, you stick a line in your httpd.conf which
goes:

Redirect temp www.domain.com www.domain.com/path-to-context

Hth,

Ben Ricker


On Mon, 2002-12-16 at 15:28, Alexander Wallace wrote:
 Hi there. Almost ready to deploy my app to test in real world.  I'm using 
 apache + tomcat (using mod_jk).  My app name is wxyz, and I have purchased 
 the domain name i want it to be under. I want to call www.mydomain.com and 
 get my app's index. instead of typing the www.mydomain.com/wxyz.
 
 How can i do that? Can someone, if not tell me how, tell me where to read to 
 learn how to do it?
 
 Sorry about the newbienezz of the email. I know nothing about this things. 
 
 Thanks!
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




Re: app roll out.

2002-12-16 Thread David Kavanagh
Well, if you were just running tomcat, I'd say put your app in 
webapps/ROOT, but I'm not sure how to configure mod_jk to redirect all 
stuff from the server root to tomcat. If you are directing everything to 
tomcat, just bag apache altogether!

David

On 12/16/2002 4:28 PM, Alexander Wallace wrote:

Hi there. Almost ready to deploy my app to test in real world.  I'm using 
apache + tomcat (using mod_jk).  My app name is wxyz, and I have purchased 
the domain name i want it to be under. I want to call www.mydomain.com and 
get my app's index. instead of typing the www.mydomain.com/wxyz.

How can i do that? Can someone, if not tell me how, tell me where to read to 
learn how to do it?

Sorry about the newbienezz of the email. I know nothing about this things. 

Thanks!


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




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




Re: app roll out.

2002-12-16 Thread Alexander Wallace
Thankyou very much, option 2 is probably what i'll use.

On Monday 16 December 2002 15:42, Ben Ricker wrote:
 This would be done by Apache (though it could possibly be done by
 Tomcat; I use Apache). You can do it one of two ways:

 1) Use mod_rewrite to rewrite /index.html to /path-to-context-name.
 Not sure on the mechanics of this. Try the Apache list for pointers, or
 any number of tutotials on mod_rewrite.

 2) Use the 'Redirect' directive in Apache. This is what I use and has
 worked for 2 years. Basically, you stick a line in your httpd.conf which
 goes:

 Redirect temp www.domain.com www.domain.com/path-to-context

 Hth,

 Ben Ricker

 On Mon, 2002-12-16 at 15:28, Alexander Wallace wrote:
  Hi there. Almost ready to deploy my app to test in real world.  I'm using
  apache + tomcat (using mod_jk).  My app name is wxyz, and I have
  purchased the domain name i want it to be under. I want to call
  www.mydomain.com and get my app's index. instead of typing the
  www.mydomain.com/wxyz.
 
  How can i do that? Can someone, if not tell me how, tell me where to read
  to learn how to do it?
 
  Sorry about the newbienezz of the email. I know nothing about this
  things.
 
  Thanks!
 
 
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]


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




Re: app roll out.

2002-12-16 Thread Alexander Wallace
I'm redirecting everything to tomcat, but part of my app requires ssl, and 
although tomcat can handle ssl, when i tryed it, all objects in my session 
that was started not using ssl, were not accessible once swithced to ssl. I 
don't know if this is the right behavior or if there is a way around it, i 
asked the list and never got an answer, so i asummed that's how it should be.

Thanks!

On Monday 16 December 2002 15:41, David Kavanagh wrote:
 Well, if you were just running tomcat, I'd say put your app in
 webapps/ROOT, but I'm not sure how to configure mod_jk to redirect all
 stuff from the server root to tomcat. If you are directing everything to
 tomcat, just bag apache altogether!

 David

 On 12/16/2002 4:28 PM, Alexander Wallace wrote:
 Hi there. Almost ready to deploy my app to test in real world.  I'm using
 apache + tomcat (using mod_jk).  My app name is wxyz, and I have purchased
 the domain name i want it to be under. I want to call www.mydomain.com and
 get my app's index. instead of typing the www.mydomain.com/wxyz.
 
 How can i do that? Can someone, if not tell me how, tell me where to read
  to learn how to do it?
 
 Sorry about the newbienezz of the email. I know nothing about this things.
 
 Thanks!
 
 
 --
 To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]

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


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




RE: app roll out.

2002-12-16 Thread James Higginbotham
That's probably the case if you were using cookies to track sessions.
The cookie spec mentions that the port is also part of the scope of a
cookie, so when you went from www.foo.com:80 to www.foo.com:443 you
changed the scope of the original cookie and thus created a new
session on the server side. The fix is to either change the cookie's
domain to be foo.com rather than www.foo.com, which will make it match
to all servers in that domain on all ports. At least, this seems to be
what I remember the issue being several years ago for a similar
deployment I did. 

HTH,
James

 -Original Message-
 From: Alexander Wallace [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, December 16, 2002 4:10 PM
 To: Tomcat Users List
 Subject: Re: app roll out.
 
 
 I'm redirecting everything to tomcat, but part of my app 
 requires ssl, and 
 although tomcat can handle ssl, when i tryed it, all objects 
 in my session 
 that was started not using ssl, were not accessible once 
 swithced to ssl. I 
 don't know if this is the right behavior or if there is a way 
 around it, i 
 asked the list and never got an answer, so i asummed that's 
 how it should be.
 
 Thanks!
 
 On Monday 16 December 2002 15:41, David Kavanagh wrote:
  Well, if you were just running tomcat, I'd say put your app in 
  webapps/ROOT, but I'm not sure how to configure mod_jk to 
 redirect all 
  stuff from the server root to tomcat. If you are directing 
 everything 
  to tomcat, just bag apache altogether!
 
  David
 
  On 12/16/2002 4:28 PM, Alexander Wallace wrote:
  Hi there. Almost ready to deploy my app to test in real 
 world.  I'm 
  using apache + tomcat (using mod_jk).  My app name is wxyz, and I 
  have purchased the domain name i want it to be under. I 
 want to call 
  www.mydomain.com and get my app's index. instead of typing the 
  www.mydomain.com/wxyz.
  
  How can i do that? Can someone, if not tell me how, tell 
 me where to 
  read  to learn how to do it?
  
  Sorry about the newbienezz of the email. I know nothing about this 
  things.
  
  Thanks!
  
  
  --
  To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED] For additional
   commands, e-mail: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




Re: app roll out.

2002-12-16 Thread Alexander Wallace
That sounds very interesting, i have to see how that works, becouse i don't 
use apache for anything else.  I just need to figure out how to change the 
domain of the cookies...

Thanks a lot!

On Monday 16 December 2002 16:14, James Higginbotham wrote:
 That's probably the case if you were using cookies to track sessions.
 The cookie spec mentions that the port is also part of the scope of a
 cookie, so when you went from www.foo.com:80 to www.foo.com:443 you
 changed the scope of the original cookie and thus created a new
 session on the server side. The fix is to either change the cookie's
 domain to be foo.com rather than www.foo.com, which will make it match
 to all servers in that domain on all ports. At least, this seems to be
 what I remember the issue being several years ago for a similar
 deployment I did.

 HTH,
 James

  -Original Message-
  From: Alexander Wallace [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 16, 2002 4:10 PM
  To: Tomcat Users List
  Subject: Re: app roll out.
 
 
  I'm redirecting everything to tomcat, but part of my app
  requires ssl, and
  although tomcat can handle ssl, when i tryed it, all objects
  in my session
  that was started not using ssl, were not accessible once
  swithced to ssl. I
  don't know if this is the right behavior or if there is a way
  around it, i
  asked the list and never got an answer, so i asummed that's
  how it should be.
 
  Thanks!
 
  On Monday 16 December 2002 15:41, David Kavanagh wrote:
   Well, if you were just running tomcat, I'd say put your app in
   webapps/ROOT, but I'm not sure how to configure mod_jk to
 
  redirect all
 
   stuff from the server root to tomcat. If you are directing
 
  everything
 
   to tomcat, just bag apache altogether!
  
   David
  
   On 12/16/2002 4:28 PM, Alexander Wallace wrote:
   Hi there. Almost ready to deploy my app to test in real
 
  world.  I'm
 
   using apache + tomcat (using mod_jk).  My app name is wxyz, and I
   have purchased the domain name i want it to be under. I
 
  want to call
 
   www.mydomain.com and get my app's index. instead of typing the
   www.mydomain.com/wxyz.
   
   How can i do that? Can someone, if not tell me how, tell
 
  me where to
 
   read  to learn how to do it?
   
   Sorry about the newbienezz of the email. I know nothing about this
   things.
   
   Thanks!
   
   
   --
   To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED] For additional
commands, e-mail: mailto:[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED] For additional
   commands, e-mail: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]

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


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




Re: app roll out.

2002-12-16 Thread Alexander Wallace
Adding a line like the one you suggest doesn't seem to work... People at 
apache's irc said it should be something like:

Redirect / http://www.domain.com/context

But that only seems to create infinite redirects since it redirects to the 
same domain name.

The docs say that redirect takes a URI and then a URL.

Could you check your config files and paste one line here? Just to make sure 
the syntax is correct?

Thanks!

On Monday 16 December 2002 15:42, Ben Ricker wrote:

 Redirect temp www.domain.com www.domain.com/path-to-context

 Hth,

 Ben Ricker


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




Re: app roll out.

2002-12-16 Thread Alexander Wallace
The line:

RedirectMatch ^/$ http://mysite/theContext 

did the trick.

Now I have to find out how to make apache call index.jsp automatically if no 
page is requested.  If i use http://localhost:8080/myapp tomcat calls 
index.jsp automatically, but when going through apache 
(http://localhost/myapp) apache doesn't load the index.jsp.  

How can i make it load index.jsp automatically?

Thanks again!

On Monday 16 December 2002 15:42, Ben Ricker wrote:
 This would be done by Apache (though it could possibly be done by
 Tomcat; I use Apache). You can do it one of two ways:

 1) Use mod_rewrite to rewrite /index.html to /path-to-context-name.
 Not sure on the mechanics of this. Try the Apache list for pointers, or
 any number of tutotials on mod_rewrite.

 2) Use the 'Redirect' directive in Apache. This is what I use and has
 worked for 2 years. Basically, you stick a line in your httpd.conf which
 goes:

 Redirect temp www.domain.com www.domain.com/path-to-context


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




Re: app roll out.

2002-12-16 Thread Joseph Shraibman
But that doesn't explain why apache would be any better at that than tomcat.

James Higginbotham wrote:

That's probably the case if you were using cookies to track sessions.
The cookie spec mentions that the port is also part of the scope of a
cookie, so when you went from www.foo.com:80 to www.foo.com:443 you
changed the scope of the original cookie and thus created a new
session on the server side. The fix is to either change the cookie's
domain to be foo.com rather than www.foo.com, which will make it match
to all servers in that domain on all ports. At least, this seems to be
what I remember the issue being several years ago for a similar
deployment I did. 


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