I think that unless you have a default entry, that it would fail. The issue is that the host name is being presented to Tomcat, and the request mapper is looking up the host name presented as part of the http request. If it's not found, and there is no default, then it would return an error.
George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -----Original Message----- > From: Scott Purcell [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 09, 2005 10:43 AM > To: Tomcat Users List > Subject: RE: Virtual host, routing, problems with localhost > > Sorry for the latency, I was in a meeting. > > No I do not have one. Do I need one, and if so, is the IP the > machine IP or localhost, or 127.0.0.1? > > Thanks > Scott > > > > -----Original Message----- > From: George Sexton [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 09, 2005 10:18 AM > To: 'Tomcat Users List' > Subject: RE: Virtual host, routing, problems with localhost > > > Do you have a host entry in your server.xml with the name of > localhost? > > George Sexton > MH Software, Inc. > http://www.mhsoftware.com/ > Voice: 303 438 9585 > > > > -----Original Message----- > > From: Scott Purcell [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, August 09, 2005 8:26 AM > > To: [email protected] > > Subject: Virtual host, routing, problems with localhost > > > > Hello, > > > > I am running Tomcat 5.5 on a PC. > > Up until a week ago, the machine was a local machine > > basically for my development. So I would hit the machine like > > so for sites: > > http://localhost/site1 > > or > > http://localhost/site9 > > > > On Monday, I purchased a staticIP and a DNS entry. I had > > register.com bind the DNS name with the IP. > > I purchased a router and put the IP into the router. In my > > original local machine, I gave it an IP and told the router > > to allow 80 traffic through to the machine. > > Then I updated my server.xml file and added a virtual host that was > > http://www.unique -> /webapps/unique > > and all was happy. > > > > So I felt good about all things. > > > > But last night, I decided to create a new site, and now I > > cannot hit it with http://localhost or http://127.0.0.1 > > And then I cannot get into the manager app either. > > > > I believe that the machine is trying to go out to the > > internet and back through the router? I get lost here, and am > > basically clueless of what I need to do? > > > > Has anyone been through this? I would appreciate any input > > that I can try. > > > > Sincerely > > Scott > > > > > --------------------------------------------------------------------- > > 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]
