WEB WAS/WAS
[Tomcat] 버전별 심볼릭링크 허용설정
홍또~
2020. 11. 27. 14:21
Tomcat은 기본적으로 보안때문에 root디렉토리에서 심볼릭링크연결을 막는다
하지만 이를 간단한 설정으로 풀어줄 수 있다.
다만 심볼릭링크 허용설정시, 성능저하가 있을 수있다.
-Tomcat7버전 이하
conf/server.xml의 경로설정 context쪽에 추가
allowLinking="true"
ex) <Context path="" allowLinking="true" docBase="/app" reloadable="false"/>
-Tomcat8버전 이상
<Resources allowLinking="true" />
conf/context.xml에 추가