1. httpd.conf 설정
<VirtualHost *:80>
DocumentRoot /home/test/public_html
ServerName test.com
<Directory /home/test/public_html>
AllowOverride All
Require all granted
</Directory>
ProxyRequests Off
ProxyPreserveHost On
<Location /chats>
ProxyPass http://test.com:8000/
ProxyPassReverse http://test.com:8000/
</Location>
</VirtualHost>
주요코드
ProxyRequests Off
ProxyPreserveHost On
#주소가 test.com/order일때, 프록시 변경해줌
<Location /order>
ProxyPass http://order.playon.tistory.com/
ProxyPassReverse http://order.playon.tistory.com/
</Location>
출처
'프로그래밍 > 서버(리눅스,centos)' 카테고리의 다른 글
proxy2 apache + php + node.js proxy설정시 socket.io에러뜰때 (0) | 2021.07.14 |
---|---|
커널 업데이트 및 순서 변경 (0) | 2021.07.13 |
apm 설정(방화벽firewall/vsftpd/httpd.conf/mysql) (0) | 2021.07.09 |
centos7 apm 설치 (0) | 2021.07.08 |
[초간단] zerossl 에서 SSL 인증서 받고, 적용까지 (0) | 2021.06.25 |