简体   繁体   中英

How to change webapp folder on Tomcat

I use tomcat 8.5.31 on Windows Server 2012 r2.

I need to change webapp folder from: C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps to C:\Alessandrotest\webapps

I tried to modify in conf/server.xml this parameters:

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

In this mode

>      <Host name="localhost"
            appBase="/C:/Alessandrotest/webapps"
            unpackWARs="true"
            autoDeploy="true" >

But it doesn't work.

Could you use below syntax and test.

<Host name="localhost"
            appBase="C:/Alessandrotest/webapps"
            unpackWARs="true"
            autoDeploy="true" >

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM