apache
[CentOS Linux] 아파치 인증서 설치 및 Proxy 설정- 5
xemaker
2021. 2. 23. 19:37
아파치 가상호스트 설정 및 다른 서버로 보내는 Proxy 세팅
ServerName 1.1.1.1
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://2.2.2.2:8081/
ProxyPassReverse / http://2.2.2.2:8081/
curl -X GET http://1.1.1.1:8081/
ServerName 1.1.1.1
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://2.2.2.2:8082/
ProxyPassReverse / http://2.2.2.2:8082/
설정을 마쳤으면 웹서버를 다시 시작한다.
apachectl restart
curl -X GET http://1.1.1.1:8082/