• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

uncommenting localhost causes server not to respond

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i installed a third party app ( on windoes server 2008 r2) that included Tomcat 6.0.24. during config i commented out localhost in server.xml (strange i know).
i set up ssl and url (virtual host) for the app and evrything works as it should.
now (due to another issue) i contacted support for the App and since the third party couldn't get localhost to respond they insist that appache isn't responding even though it absolutely has to be
now when i try to un comment localhost and restart tomcat i don't get any error messages i can find but the url's never generate a response.
my localhost entry looks something like
<Host name="localhost" appBase="C:\third_party\Tomcat6\webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"></Host>
is there anything special about localhost... does it have to be first in server.xml?
does anyone know what i have to do to get it to respond again?
if i just go to the url (as https:) i have on the dns for the machine i do get that status page.

any help or ideas are appreciated. Thanks
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, "b"!

Your best bet may be to pull a copy of the original server.xml from the ZIP file that contains the Tomcat you downloaded and installed and restart from there.

Server.xml is an XML file, and it actually defines how the various building blocks that make up Tomcat are assembled. Order of the elements isn't as important as relationships between the various elements.

I think you may be confusing the Apache HTTPD server with the Apache Tomcat server. Although Tomcat does support virtual hosts, that feature isn't used as often as Apache Virtual Hosts are. Especially if you are using Apache as your front-line server and proxy to Tomcat.

In Tomcat "localhost" generally is the default host.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic