728x90
목표하고자 하는 구성은 다음과 같다.
현재 iplanet은 aaa.com으로 모든 요청을 넘기는 proxy 서버로써의 역할을 하고 있다.
proxy 서버의 구성은 다음과 같다.
obj.conf NameTrans fn="map" from="/" to="http:/" name="reverse_proxy" ... <Object name="reverse_proxy"> Route fn="set-origin-server" server="http://abcdef.com" </Object> |
즉 해당 iplanet으로 들어온 모든 요청은 abcdef.com으로 넘기는 proxy 서버 구성이라는 의미이다.
다만 위 구성에서 해당 경로에 들어오는 파일들에 대해서만 iplanet이 처리하게 하고 싶은 경우이다.
단 WAS는 따로 존재하지 않는다.
다음과 같이 구성
obj.conf NameTrans fn="map" from="/" to="http:/" name="reverse_proxy" NameTrans fn="pfx2dir" from="/tttt" dir="/home/abcd" name="test" ... <Object name="test"> </Object> <Object name="reverse_proxy"> Route fn="set-origin-server" server="http://abcdef.com" </Object> |
위 구성 시 /home/abcd에 위치한 파일들에 대해 (name이 test인 것에 대한 document root를 /home/abcd로 하여라는 의미)
iPlanet이 proxy로 넘겨버리지 않고 직접 처리를 하게 된다.
이 외에 obj.conf에
<If $path eq "/aa">
</If>
<Else>
</Else>
등의 if~else 문을 사용하는 것 또한 테스트해봤으니, 참고하여 이후에도 비슷한 구성에서 사용하기.
728x90
'Oracle > Web Tier' 카테고리의 다른 글
IPlanet instance obj.conf 파일 생성 안됨 현상 (0) | 2022.10.26 |
---|---|
OHS, Iplanet PID 파일 (0) | 2022.10.14 |
OHS ~ Apache 버전 정리 (0) | 2022.10.05 |
FileCaching & WLTempDir (0) | 2022.10.04 |
mime types 설정 (0) | 2022.09.29 |