Basic server.xml for Tomcat

83 / 100

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.

Basic server.xml to set

What’s the most basic server.xml?

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"
 docBase="c:\My_Application_Path"
 workDir="c:\My_Application_Work_Path" debug="0"/>
       </Host>
     </Engine>
   </Service>
 </Server>

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