Basic server.xml for Tomcat

For software developers and also web hosts, we all know about the server.xml configuration which is needed to set up in Tomcat. A server.xml file contains all the requirements to set your project context path and host name. But what if you’re just running on basic server.xml configuration.

What’s the most basic?
By default, whenever someone installs tomcat, it comes with the default longer version of server.xml which includes the examples webapp running. Now what if we don’t want tomcat to load the examples application, in the [Tomcat Path]/conf directory, simply replace the server-noexamples.xml.config and rename it to server.xml. That’s all that needs to be done.

How about the MOST MOST Basic?
Is there anything else which looks even organized, then take a look at this server.xml configuration.

<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8080" />
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" debug="0" appBase="webapps" >
<Context path="/myapp" reloadable="true" reload="true"
workDir="c:\My_Application_Work_Path" debug="0"/>

Now try this if you’re using the most minimal server.xml configuration for your tomcat. 🙂

No Responses

  1. Pingback: Basic server | Website Directory January 31, 2008

Leave a Reply