RE: Virtual hosts with standalone tomcat 5.5.9
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Subject: Virtual hosts with standalone tomcat 5.5.9 > > > I tried simply going like this > > > > > > > > > > > > > > I believe you are only allowed to have one Context path="" > because this defines the default webapp - where the requests > go if they don't match any other context path. There is a default webapp per host, not per Tomcat. (However, the path attribute must not be used unless the entry is in server.xml, and that is strongly discouraged these days.) To quote from the Tomcat server reference doc for the path attribute: "The context path of this web application, which is matched against the beginning of each request URI to select the appropriate web application for processing. All of the context paths within a particular Host must be unique. If you specify a context path of an empty string (""), you are defining the default web application for this Host, which will process all requests not assigned to other Contexts. The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered from the filenames used for either the .xml context file or the docBase." > I'm not sure how you could implement real virtual hosts on Tomcat Now that's an interesting turn of phrase: "real virtual hosts". - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual hosts with standalone tomcat 5.5.9
> I tried simply going like this > > > > > > > > > I believe you are only allowed to have one Context path="" because this defines the default webapp - where the requests go if they don't match any other context path. I'm not sure how you could implement real virtual hosts on Tomcat - where you can link to eg "/index.html" insted of "/webappname/index.html". Be nice to know. Regards, John Fletcher ** IMPORTANT: This e-mail is intended for the use of the addressee and may contain information that is confidential, commercially valuable or subject to legal or parliamentary privilege. If you are not the intended recipient you are notified that any review, re-transmission, disclosure, use or dissemination of this communication is strictly prohibited by several Commonwealth Acts of Parliament. If you have received this communication in error please notify the sender immediately and delete all copies of this transmission together with any attachments. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual hosts with standalone tomcat 5.5.9
You can't do it that way. At least the testing. You either have to set up DNS to resolve both names back to the IP or put entries in your host file. When you do a request to the server the header holds the URL and when you use the localhost that is what is sent in the header. Tomcat then will use the first host since there is no match. And that is why www.mysite.com works. It is the first one listed. Add the entries to your host file and try the actual URLs listed in the server.xml, then if all else is right, it will work. Doug - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Friday, June 24, 2005 6:16 PM Subject: Virtual hosts with standalone tomcat 5.5.9 All I need is different FQDNs (Fully qualified domain names) Say: www.mysite.com, mail.external.mysite.com I tried simply going like this and www.mysite.com works fine but mail.external.mysite.com doesn't. In my trials, I am actually using http://localhost:8080/ and http://host2.localhost:8080/ and I am just copying all the files from the webapps folder. I don't think that this should be causing any problems, though. I have searched for it and you get a lot on links refering to previous versions, etc. Albretch - 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: Virtual hosts with standalone tomcat 5.5.9
how do you have mail.external.mysite.com set up in your dns?? Does it point to the same IP as your tomcat server that mysite.com is hosted on? Drew. On Fri, 2005-06-24 at 18:16 -0400, [EMAIL PROTECTED] wrote: > mail.external.mysite.com
Virtual hosts with standalone tomcat 5.5.9
All I need is different FQDNs (Fully qualified domain names) Say: www.mysite.com, mail.external.mysite.com I tried simply going like this and www.mysite.com works fine but mail.external.mysite.com doesn't. In my trials, I am actually using http://localhost:8080/ and http://host2.localhost:8080/ and I am just copying all the files from the webapps folder. I don't think that this should be causing any problems, though. I have searched for it and you get a lot on links refering to previous versions, etc. Albretch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]