개발자/Server
톰켓 심볼릭 링크 인식하기
Swamp of hope
2019. 1. 3. 09:29
한동안 톰켓 6버전만 사용하고 7버전때 잠깐 고생했던거 같은데 1년전이라 기억도 안남.
심볼릭링크로 연결된 upload 폴더가 톰켓 8.5버전에서 인식이 안됨.
<-- 기존 사용법 --><Host name="localhost" docBase="webaaps" allowlinking="true" unpackWARs="true" autoDeploy="true"><Context path="" docBase="경로" reloadable="true" useHttpOnly="false" allowLinking="true" /></Host><!-- 변경1 --><Host name="localhost" docBase="webaaps" allowlinking="true" unpackWARs="true" autoDeploy="true"><Context path="" docBase="경로" reloadable="true" useHttpOnly="false"><Resources allowLinking="true" /></Context></Host><!-- 변경2 --><Host name="localhost" docBase="webaaps" allowlinking="true" unpackWARs="true" autoDeploy="true"><Context path="" docBase="경로" reloadable="true" useHttpOnly="false"><Resources><PreResourcesaclassName="org.apache.catalina.webresources.DirResourceSet"base="경로/upload"webAppMount="/upload"internalPath="/"/></Resources></Context></Host>이것 저것 다 시도 해봤으나 적용 안됨.안그래도 바쁜 시기에 별것도 아닌거 가지고 한시간을 날려버럼..Tomcat 폴더/conf/context.xml 안에<Context> 태그가 있다 그 안에<Resources allowLinking="true" />한줄 넣고 모든게 해결.