이것저것/Ubuntu

[Ubuntu] Reverse Proxy(역방향프록시) 설정

pental 2020. 1. 27. 21:05
# apt-get update
# apt-get install apache2 -y
# cd /etc/apache2/site-available
# vi [도메인주소].conf

ex) vi pental.system32.kr.conf
<VirtualHost *:80>
    ProxyPreserveHost On
    ProxyPass / http://localhost:[port]/
    ProxyPassReverse / http://localhost:[port]/
    ServerName [도메인주소]
</VirtualHost>
# a2enmod proxy
# a2enmod proxy_http
# a2ensite [도메인주소].conf
# service apache2 restart