하은양 믿음군 효실맘 호홍홍집s

아파치 mod_proxy 설정하기 본문

가벼운 배움/서버관련

아파치 mod_proxy 설정하기

호홍홍집 2017. 2. 6. 22:31

참고 : http://www.apachetutor.org/admin/reverseproxies

LoadModule proxy_module      modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule headers_module    modules/mod_headers.so
LoadFile   /usr/lib/libxml2.so
LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule xml2enc_module modules/mod_xml2enc.so

ProxyRequests off
ProxyPass /app1/ http://internal1.example.com/
ProxyPass /app2/ http://internal2.example.com/
ProxyHTMLURLMap http://internal1.example.com /app1
ProxyHTMLURLMap http://internal2.example.com /app2

<Location /app1/>
        ProxyPassReverse /
        ProxyHTMLEnable On
        ProxyHTMLURLMap  /      /app1/
        RequestHeader    unset  Accept-Encoding
</Location>

<Location /app2/>
        ProxyPassReverse /
        ProxyHTMLEnable On
        ProxyHTMLURLMap /       /app2/
        RequestHeader   unset   Accept-Encoding
</Location>
mod_proxy 와 mod_proxy_html을 사용한다면 위와같이 쓰면 좋을듯하여 ㅋ ㅋ ㅋ