1、 /conf/server.xml配置
<Host name="www.mioohoo.com" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="/files" docBase="/mnt/uploadFile" debug="0" reloadable="true"/>
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Context path="webapps" docBase="/mhjr_web" reloadable="true" />
<Context docBase="mhjr_web" path="" reloadable="true" />
<Host name="localhost" appBase="webapps"
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
2、将项目打包成 ROOT.war ,放到/apache-tomcat-7.0.61/webapps/下面,启动tomcat后,目录如下
tomcat企业域名绑定
猜你喜欢
转载自pengfeicao521.iteye.com/blog/2275234
今日推荐
周排行