[Apache] Reverse Proxy 설정

배세훈·2022년 9월 6일
0

Reverse Proxy

  • 리버스 프록시란 외부에서 접속했을 때 내부서버나 다른 곳으로 연결해주는 방법을 말합니다.

Apache Proxy 설정

  1. /apache/conf/httpd.conf 파일을 열어 아래 모듈의 주석을 풀어줍니다.
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
  1. httpd.conf 파일 수정
<VirtualHost *:80>
  ServerName test.com
  ProxyRequests Off
  ProxyPreserveHost On
  ProxyPass / http://localhost:8080/
  ProxyPassReverse / http://localhost:8080/
</VirtualHost>
profile
성장형 인간

0개의 댓글