RE: creating virtual hosts - HOW TO?
Are you referring to the action servlet of Struts? I just want the default URL to be www.hotel.us rather than www.hotel.us/index.html. Granted, they mean the same thing (if index.html is the default page) ... I just thought it was more graceful for it show only the URL where possible. Is there something else you were referring to that I'm not aware of? Thanks. Neal -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 9:37 PM To: Tomcat Users List Subject: RE: creating virtual hosts - HOW TO? Look at struts. At 02:32 PM 8/26/2002 -0700, you wrote: Just one last thing. Perhaps this is getting picky but ... currently, Tomcat will forward the URL to the default page I list in the web.xml file. For instance, if I navigate to www.hotel.us ... and the default page is index.html ... the URL window will actually show that I've been sent to www.hotel.us/index.html. I would prefer that it simply show www.hotel.us and figure out which page to display behind the scenes. Does anyone know how to configure that? Thanks. Neal -- 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: creating virtual hosts - HOW TO?
You can forward everything to the action servlet in struts and achieve your objective. Once again, look at struts, or maybe Jason Hunter's book on servlets and the Model 2 architecture. That is the key to what you want. At 11:46 PM 8/26/2002 -0700, you wrote: Are you referring to the action servlet of Struts? I just want the default URL to be www.hotel.us rather than www.hotel.us/index.html. Granted, they mean the same thing (if index.html is the default page) ... I just thought it was more graceful for it show only the URL where possible. Is there something else you were referring to that I'm not aware of? Thanks. Neal -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 9:37 PM To: Tomcat Users List Subject: RE: creating virtual hosts - HOW TO? Look at struts. At 02:32 PM 8/26/2002 -0700, you wrote: Just one last thing. Perhaps this is getting picky but ... currently, Tomcat will forward the URL to the default page I list in the web.xml file. For instance, if I navigate to www.hotel.us ... and the default page is index.html ... the URL window will actually show that I've been sent to www.hotel.us/index.html. I would prefer that it simply show www.hotel.us and figure out which page to display behind the scenes. Does anyone know how to configure that? Thanks. Neal -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: creating virtual hosts - HOW TO?
Hello neal, Your appBase attribute on the Host ... element plus your docBase on your Context ... element implies that you have the following directory structure: $TOMCAT_HOME/webapps/hotel/hotel Note that the docBase for a particular webapp looks for the named directory inside the appBase. Since your appBase is webapps/hotel, there should be another hotel directory inside the appBase where your context exists. I'm assuming what you have set up is actually this: $TOMCAT_HOME/webapps/hotel and you have your webapp inside that first hotel directory. That won't work. Put your webapp inside another hotel directory inside the first hotel directory and your example should work. Or, it might work if you use a docBase of . I'm not positive about that, though, so you'd have to test and see. The first solution should work. Jake Monday, August 26, 2002, 12:26:48 PM, you wrote: n I am attempting to create multiple discreet web apps, each of whom can n listen to their own URLs for page requests. Here's an example of what I've n done for each webApp (virtual host): n Host name=www.hotel.us appbase=webapps/hotel debug=10 n Context path=/hotel docBase=hotel debug=10 / n /Host n But, I am getting a 500 error with the message No Context configured to n process this request. It sees to be at least redirecting the requests for n the specified URLs correctly (away from the default webapp) ... but I'm n getting that darned 500 error ... dispite specifying the Context node. n grrr n Any thoughts? n Thanks! n Neal n -- n To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] n For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: creating virtual hosts - HOW TO?
Jacob, Cool thanks! I just had to play with those settings but in principal you're right on the money! Here's what finally worked: Host name=www.hotel.us appbase=webapps/hotel debug=10 Context path= docBase= debug=10 / /Host Cheers! Neal -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 10:43 AM To: Tomcat Users List Subject: Re: creating virtual hosts - HOW TO? Hello neal, Your appBase attribute on the Host ... element plus your docBase on your Context ... element implies that you have the following directory structure: $TOMCAT_HOME/webapps/hotel/hotel Note that the docBase for a particular webapp looks for the named directory inside the appBase. Since your appBase is webapps/hotel, there should be another hotel directory inside the appBase where your context exists. I'm assuming what you have set up is actually this: $TOMCAT_HOME/webapps/hotel and you have your webapp inside that first hotel directory. That won't work. Put your webapp inside another hotel directory inside the first hotel directory and your example should work. Or, it might work if you use a docBase of . I'm not positive about that, though, so you'd have to test and see. The first solution should work. Jake Monday, August 26, 2002, 12:26:48 PM, you wrote: n I am attempting to create multiple discreet web apps, each of whom can n listen to their own URLs for page requests. Here's an example of what I've n done for each webApp (virtual host): n Host name=www.hotel.us appbase=webapps/hotel debug=10 n Context path=/hotel docBase=hotel debug=10 / n /Host n But, I am getting a 500 error with the message No Context configured to n process this request. It sees to be at least redirecting the requests for n the specified URLs correctly (away from the default webapp) ... but I'm n getting that darned 500 error ... dispite specifying the Context node. n grrr n Any thoughts? n Thanks! n Neal n -- n To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] n For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[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: creating virtual hosts - HOW TO?
I'd try putting the appBase (not appbase !!!) for your virtual host somewhere *other* than the webapps subdirectory -- that is just going to cause confusion for the default host. Second, the docBase directory for a Context is resolved relative to the directory of the parent appBase, so you'd end up looking for this webapp in $CATALINA_HOME/webapps/hotel/hotel. Craig On Mon, 26 Aug 2002, neal wrote: Date: Mon, 26 Aug 2002 10:26:48 -0700 From: neal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: creating virtual hosts - HOW TO? I am attempting to create multiple discreet web apps, each of whom can listen to their own URLs for page requests. Here's an example of what I've done for each webApp (virtual host): Host name=www.hotel.us appbase=webapps/hotel debug=10 Context path=/hotel docBase=hotel debug=10 / /Host But, I am getting a 500 error with the message No Context configured to process this request. It sees to be at least redirecting the requests for the specified URLs correctly (away from the default webapp) ... but I'm getting that darned 500 error ... dispite specifying the Context node. grrr Any thoughts? Thanks! Neal -- 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: creating virtual hosts - HOW TO?
On Mon, 26 Aug 2002, neal wrote: Date: Mon, 26 Aug 2002 11:15:17 -0700 From: neal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], Jacob Kjome [EMAIL PROTECTED] Subject: RE: creating virtual hosts - HOW TO? Jacob, Cool thanks! I just had to play with those settings but in principal you're right on the money! Here's what finally worked: Host name=www.hotel.us appbase=webapps/hotel debug=10 Context path= docBase= debug=10 / /Host Note that this will cause your app to be deployed under context path /hotel on the default host, in addition to being deployed as the root webapp of the virtual host. That's probably not what you want -- the solution is to make the appBase of this host be someplace else. Note that you can use an absolute pathname for either appBase or docBase. Cheers! Neal Craig -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 10:43 AM To: Tomcat Users List Subject: Re: creating virtual hosts - HOW TO? Hello neal, Your appBase attribute on the Host ... element plus your docBase on your Context ... element implies that you have the following directory structure: $TOMCAT_HOME/webapps/hotel/hotel Note that the docBase for a particular webapp looks for the named directory inside the appBase. Since your appBase is webapps/hotel, there should be another hotel directory inside the appBase where your context exists. I'm assuming what you have set up is actually this: $TOMCAT_HOME/webapps/hotel and you have your webapp inside that first hotel directory. That won't work. Put your webapp inside another hotel directory inside the first hotel directory and your example should work. Or, it might work if you use a docBase of . I'm not positive about that, though, so you'd have to test and see. The first solution should work. Jake Monday, August 26, 2002, 12:26:48 PM, you wrote: n I am attempting to create multiple discreet web apps, each of whom can n listen to their own URLs for page requests. Here's an example of what I've n done for each webApp (virtual host): n Host name=www.hotel.us appbase=webapps/hotel debug=10 n Context path=/hotel docBase=hotel debug=10 / n /Host n But, I am getting a 500 error with the message No Context configured to n process this request. It sees to be at least redirecting the requests for n the specified URLs correctly (away from the default webapp) ... but I'm n getting that darned 500 error ... dispite specifying the Context node. n grrr n Any thoughts? n Thanks! n Neal n -- n To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] n For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: creating virtual hosts - HOW TO?
Aah. Good catch. Yeah, you're right ... that's what its doing. Alright. I will definitely change that. Cheers. Neal -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 12:45 PM To: Tomcat Users List Cc: Jacob Kjome Subject: RE: creating virtual hosts - HOW TO? On Mon, 26 Aug 2002, neal wrote: Date: Mon, 26 Aug 2002 11:15:17 -0700 From: neal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], Jacob Kjome [EMAIL PROTECTED] Subject: RE: creating virtual hosts - HOW TO? Jacob, Cool thanks! I just had to play with those settings but in principal you're right on the money! Here's what finally worked: Host name=www.hotel.us appbase=webapps/hotel debug=10 Context path= docBase= debug=10 / /Host Note that this will cause your app to be deployed under context path /hotel on the default host, in addition to being deployed as the root webapp of the virtual host. That's probably not what you want -- the solution is to make the appBase of this host be someplace else. Note that you can use an absolute pathname for either appBase or docBase. Cheers! Neal Craig -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 10:43 AM To: Tomcat Users List Subject: Re: creating virtual hosts - HOW TO? Hello neal, Your appBase attribute on the Host ... element plus your docBase on your Context ... element implies that you have the following directory structure: $TOMCAT_HOME/webapps/hotel/hotel Note that the docBase for a particular webapp looks for the named directory inside the appBase. Since your appBase is webapps/hotel, there should be another hotel directory inside the appBase where your context exists. I'm assuming what you have set up is actually this: $TOMCAT_HOME/webapps/hotel and you have your webapp inside that first hotel directory. That won't work. Put your webapp inside another hotel directory inside the first hotel directory and your example should work. Or, it might work if you use a docBase of . I'm not positive about that, though, so you'd have to test and see. The first solution should work. Jake Monday, August 26, 2002, 12:26:48 PM, you wrote: n I am attempting to create multiple discreet web apps, each of whom can n listen to their own URLs for page requests. Here's an example of what I've n done for each webApp (virtual host): n Host name=www.hotel.us appbase=webapps/hotel debug=10 n Context path=/hotel docBase=hotel debug=10 / n /Host n But, I am getting a 500 error with the message No Context configured to n process this request. It sees to be at least redirecting the requests for n the specified URLs correctly (away from the default webapp) ... but I'm n getting that darned 500 error ... dispite specifying the Context node. n grrr n Any thoughts? n Thanks! n Neal n -- n To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] n For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[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] -- 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: creating virtual hosts - HOW TO?
Just one last thing. Perhaps this is getting picky but ... currently, Tomcat will forward the URL to the default page I list in the web.xml file. For instance, if I navigate to www.hotel.us ... and the default page is index.html ... the URL window will actually show that I've been sent to www.hotel.us/index.html. I would prefer that it simply show www.hotel.us and figure out which page to display behind the scenes. Does anyone know how to configure that? Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: creating virtual hosts - HOW TO?
Look at struts. At 02:32 PM 8/26/2002 -0700, you wrote: Just one last thing. Perhaps this is getting picky but ... currently, Tomcat will forward the URL to the default page I list in the web.xml file. For instance, if I navigate to www.hotel.us ... and the default page is index.html ... the URL window will actually show that I've been sent to www.hotel.us/index.html. I would prefer that it simply show www.hotel.us and figure out which page to display behind the scenes. Does anyone know how to configure that? Thanks. Neal -- 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]