linux下tomcat如何配置虚拟路径
来源:百度知道 编辑:UC知道 时间:2024/05/21 15:46:30
给你一个例子:
<Context path="/test" reloadable="true" docBase="d:\project2\test\app" >
path是你的虚拟路径
docBase是你的工程的实际路径
请你百度一下你会找到很多实例。
配置Linux下tomcat虚拟路径:
找到linux下的server.xml文件,在<Host>标签内进行如下配置
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix=&quo