How to change the default directory of Tomcat 6.0
Hi All,
I want to change the default directory of webapps in Tomcat 6.0
from "C:\Apache\Tomcat 6.0\webapps\ROOT\" to my folder in drive C:
How to configure it ?
Thank you,
Vilas
Hi All,
I want to change the default directory of webapps in Tomcat 6.0
from "C:\Apache\Tomcat 6.0\webapps\ROOT\" to my folder in drive C:
How to configure it ?
Thank you,
Vilas
hi,
you are asking that your directory is in c drive
ex:
c:\sample
now you dont wanna store in root or webapps
from c drive you have to deploy in tomcat, am a right,
if yes
here is the solution
goto conf dir under tomcat x.x
edit server.xml
in between <host> </host> tag u add this line
<Context path="/sample" docBase="c:\sample" debug="0" />
in this path is for context,
ex:
http://localhost:8080/sample
docBase is to mention your directory path
i hope it will help you.