server.xml:
<Connector port="80" redirectPort="8443" connectionTimeout="20000" protocol="HTTP/1.1"/>
<Host name="localhost" xmlNamespaceAware="false" xmlValidation="false" autoDeploy="true" unpackWARs="true" appBase="webapps">
<Context reloadable="true" path="" docBase="C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\SldCenter"/>
</Host>
web.xml:
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
这样即可直接输入IP eg: 192.168.0.20