Tomcat server setting default startup page

Find server.xml in the conf folder and
modify it under the Host node: as shown below

<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" -->
	    <Context path="" docBase="C:/Server/apache-tomcat-8.5.57/webapps/mbts_27_elearn/" debug="0"/>
        <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" />
		

      </Host>

The path in docBase is the root directory of the project

Guess you like

Origin blog.csdn.net/weixin_41743629/article/details/117708715
Recommended