[WAS] proxy 설정

김봉남·2024년 1월 23일

WAS

목록 보기
8/23
post-thumbnail

proxy

Apache 프록시 설정은 Apache 웹 서버가 클라이언트로부터의 요청을 다른 서버로 전달하는 역할을 수행하는 구성

proxy 사용 모듈

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

proxy 설정 예시

<VirtualHost *:80>
    ServerName example.com

    ProxyPass "/app" "http://backend-server/"
    ProxyPassReverse "/app" "http://backend-server/"
</VirtualHost>

/app 경로로 들어오는 요청을 backend-server로 프록시 전달

apache proxy 설정

### httpd_2.2.21 http
ProxyRequests Off
ProxyPreserveHost On

ProxyPass /grafana https://00.00.00.00:3000
ProxyPassReverse /grafana https://00.00.00.00:3000


### httpd_2.2.21 https
SSLProxyEngine On
ProxyRequests Off
ProxyPreserveHost On

ProxyPass /grafana https://00.00.00.00:3000
ProxyPassReverse /grafana https://00.00.00.00:3000


### httpd 2.4 ssl.conf
ProxyRequests Off
ProxyPreserveHost On
SSLProxyEngine On

#   SSLProxyCheckPeerCN off       # 인증서 이름 안 맞을 때 
#   SSLProxyCheckPeerName off     # 인증서 이름 안 맞을 때 

ProxyPass /grafana https://grafana.ABC.com:3000
ProxyPassReverse /grafana https://grafana.ABC.com:3000

profile
남자다

0개의 댓글