2014. 1. 21. 17:39

JSP 구동시 IIS 가상 디렉토리 잡기[Server.xml]

결론부터 말하자면 아래와 같습니다.


<Context path="" docBase="D:\WWW_ROOT\duck.pe.kr" reloadable="false"/>


<Context path="/web" docBase="D:\WWW_ROOT\duck.pe.kr\jsp\tgWeb"  reloadable="true"/>


<Context path="/photobook" docBase="\\100.100.100.1\\iusr_computer\\photobook" debug="0" privileged="true" reloadable="true"/>


<Context path="/story/editer/Skins" docBase="\\100.100.100.1\\iusr_computer\\editer\\Skins" debug="0" privileged="true" reloadable="true"/>


<Context path="/story/editer/SkinsOrg" docBase="\\100.100.100.1\\iusr_computer\\editer\\SkinsOrg" debug="0" privileged="true" reloadable="true"/>





위의 과정중 네트워크 드라이브로 잡는 \\100.100.100.1 이 있는데 이부분은 아래 포스트에서 확인하시기 바랍니다.

http://duck.pe.kr/233


위에서 가장 중요한것은 path 부분입니다. 


주소

http://duck.pe.kr/photobook  를 가상 디렉토리로 만들경우

 =>   path="/photobook" 


주소

http://duck.pe.kr/story/editer/skins  를 가상 디렉토리로 만들경우

 =>   path="/story/editer/Skins


주소

http://duck.pe.kr/story/editer/SkinsOrg  를 가상 디렉토리로 만들경우

 =>   path="/story/editer/SkinsOrg



요렇게 하고  tomcat 를 재시작하면 잘 되던군요.ㅋㅋ