tomcat9中conf文件夹下的server.xml文件

来源:互联网 发布:网络之纵横天下同人 编辑:程序博客网 时间:2024/05/21 14:48


      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">


        <!-- 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
             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 &quot;%r&quot; %s %b" />
        <Context path="" docBase="/home/tomcat/apache-tomcat-9.0.0.M22/webapps/myproject"></Context>

      </Host>


上面appBase是放web项目的路径,unpackWARs是否自动解压war包,autoDeploy是否自动部署,Context是我新加的,path表示网址后面的项目路径,docBase表示linux存放web项目的路径,两者相对应。

阅读全文
0 0