Os & Server/Tomcat
JSP] 가상 디렉토리 설정
BeOne
2008. 11. 14. 10:36
목적 :
항상 webapps폴더의 하위 폴더로 추가할수는 없음
방법:
~\jakarta-tomcat-5.0.xx\conf\server.xml 파일에 웹 어플리케이션 정보 추가
예제:
http://localhost:8080/test를 c:\home\test폴더로 지정
=======================================================================================================
- <Host name="localhost"appBase="webapps"unpackWARs="true"autoDeploy="true"xmlValidation="false"xmlNamespaceAware="false">
- <!--
Defines a cluster for this node, By defining this element, means that every manager will be changed. So when running a cluster, only make sure that you have webapps in there
.....
<Context path="/test" docBase="c:\home\test" />
</Host>
===============================================================================
주의:
class파일과 xml파일 수정시 톰캣서버 재시작