The FAQ has moved to the Tomcat site. The new location of the Tomcat FAQ is now http://jakarta.apache.org/tomcat/faq/
Tomcat FAQ: Configure
Topics
  • Home
  • Apache/Jk/Jk2
  • Bugs
  • Class Not Found
  • Configuring
  • Database
  • I got an error
  • Linux
  • Memory
  • Miscellaneous
  • Monitoring
  • Performance
  • Security
  • Tomcat-user
  • Which Version
  • Windows
  • About
  • This page covers common configuration questions. Did you read the docs?

    Q: Is there a DTD for server.xml?
    A: No! Nor can one accurately exist. Here's why
    Q: How do I change the welcome file? (I want to show index.jsp instead of index.html)
    A: This is done in web.xml by changing welcome-files-list. More detail.
    Q: How do I make Tomcat listen on a specific IP address instead of all available addresses?
    A: RTFM! [Add the property address='127.0.0.1' to your Connector config.] For more detail: JK, http (legacy), http (coyote).
    Q: How do I disable directory listings?
    A: Look for $TOMCAT_HOME/conf/web.xml. In there you can change the behavior. This can also be overridden per webapp by placing the same config info in your local webapp. Link to an answer.
    Q: How do I use symbolic links with jars?
    A: You'll need to mess with server.xml and do this. (Don't worry - its really easy!)
    Q: How do I set System properties at startup?
    A: With JAVA_OPTS environment variable. ... Windows service users - use this
    Q: How do I get a custom error page?
    A: You configure this in web.xml. All the gory details are in the servlet spec for more information.

    The original location of this FAQ is located at: http://tomcatfaq.sourceforge.net/ and is hosted by SourceForge.net Logo


    Last edit date: $Date: 2003/05/20 11:10:20 $ .