1. 程式人生 > >tomcat如何配置多個web項目?

tomcat如何配置多個web項目?

nbsp pps ont XML 多個 unp auto ble web項目

1、

在server.xml中 如下配置:

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

<Context docBase="fxgk_test" path="/fxgk2" reloadable="true" ></Context>
<Context docBase="fxgk_test2" path="/fxgk3" reloadable="true" ></Context>

兩個項目的訪問路徑分別為:

http://localhost:8080/fxgk2

http://localhost:8080/fxgk3

tomcat如何配置多個web項目?