Apache

Apache Location 설정 시 주의점

꽃도련 2022. 11. 9. 14:58

Apache에서 Location 지정할시 경로 뒤에 /를 붙여준다.

 

<Location /test>
	SetHandler Weblogic-handler
</Location>

위와 같이 설정 시 URL에 /testFile, /testPath와 같은 경로를 입력하면 /test Location을 따라감

이를 방지하기 위해 아래와 같이 설정

<Location /test/>
	SetHandler Weblogic-handler
</Location>