Apache reverse proxy 모듈을 통하여 web request를 특정 ip 또는 url로 포워딩할 수 있다.
SSLProxyEngine on SSLProxyVerify none SSLProxyCheckPeerName off ProxyPreserveHost off ProxyRequests off ProxyPass /test https://testapi.co.kr/test ReverseProxyPass /test https://testapi.co.kr/test |
ProxyPreserveHost | Host 헤더를 현재 사용자가 요청한 서버 Host로 설정(on/off) |
ProxyRequests | 프록시 요청 포워드 설정(on:정방향 프록시 / off:역방향 프록시) |
SSLProxyCheckPeerName (Apache 2.4.4 이하 버전은 SSLProxyCheckCN) |
원격 서버 인증서의 CN필드 확인 여부(on/off) |
내부망에서 외부URL로 접근하기 위한 Relay 서버 구성시 유용하게 사용 가능
* mod_proxy
- https://httpd.apache.org/docs/2.4/mod/mod_proxy.html
* mod_ssl
- https://httpd.apache.org/docs/2.4/mod/mod_ssl.html
* 정방향 프록시와 역방향 프록시가 잘 설명된 사이트
'Apache' 카테고리의 다른 글
Apache Location 설정 시 주의점 (0) | 2022.11.09 |
---|