PostIT

[Apache/Tomcat] Context.xml 수정을 통한 문제 해결 - Cache, CSRF(Upload) 본문

Webserver/Tomcat

[Apache/Tomcat] Context.xml 수정을 통한 문제 해결 - Cache, CSRF(Upload)

shun10114 2016. 11. 25. 08:27

Servers 폴더에 있는 context.xml에 이 부분을 넣어주면 문제가 해결된다.


<!--  멀티파트 CSRF부분 해결  -->

<Context allowCasualMultipartParsing="true">


<WatchedResource>WEB-INF/web.xml</WatchedResource>

<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>

<!--  케시문제 해결  -->

<Resources cachingAllowed="true" cacheMaxSize="100000"></Resources>

</Context>


False일대와 MaxSize가 어떤 영향을 주는지는 차차 알아봐야 할 것이다.





Comments