不安装nginx情况下,输入ip直接访问指定工程方法:
在tomcat6的配置文件下(/var/lib/tomcat6/conf/server.xml找到host部分
xmlvalidation="false" xmlnamespaceaware="false">
在后面添加你所需要直接访问的工程内容,如下:
path路径为空,程序指定位置在docBase,重启tomcat即可。
<Service name="xxx">
<Connector port="8080" protocol="HTTP/1.1"
maxThreads="80" minSpareThreads="80" maxSpareThreads="100" acceptCount="100"
enableLookups="false"
c
URIEncoding="UTF-8"
redirectPort="8443" />
<Engine name="xxx" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" debug="0" appBase="/xxx/temp/" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/xxx/" debug="0" reloadable="true" crossC/Context>
</Host>
</Engine>
</Service>以上就介绍了未安装nginx输入ip直接访问工程,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。










