I am new to Tomcat deployment.
I found in Tomcat's document and it says this about <Context> tag's docBase attribute:
The value of this field must not be set unless the Context element is defined in server.xml or the docBase is not located under the Host's appBase.
Here is my problem:
-
I create a
<Host>tag inside server.xml and setappBase="C:/xxx/" -
create a xml file named
ROOT.xmlinsideC:/xxx/and add<Context docBase="../yyy" /> -
put index.html inside
C:/yyy/
Why is it doesn't work when I try to browser localhost:8080/ ?
Doesn't it supposed to show the index.html inside C:/yyy ?
Aucun commentaire:
Enregistrer un commentaire