ss_blog_claim=a37b70f67cd872812717e1fce7e83301
Latest Posts »
Latest Comments »
Popular Posts »

Basic server.xml for Tomcat

Written by techieDan on January 31, 2008 – 3:18 pm

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"
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. :)


Tags: , ,
Posted in Tomcat |

One Comment to “Basic server.xml for Tomcat”

  1. Basic server | Website Directory Says:

    [...] post by TechieDan Share and Enjoy: These icons link to social bookmarking sites where readers can share and [...]

Leave a Comment