λ¬Έμ
-
μνμΉ νλ‘μλ₯Ό μ€μ ν μΌμ΄ μ겨μ conf νμΌμ μλμ κ°μ΄ location μ€μ μ μΆκ° ν΄μ€¬μΌλ
1 2 3 4 5 6 7 8 9
<VirtualHost *:80> ServerName www.api.com //... <Location "/event/"> ProxyPass http://112.13.14.15/event/ ttl=30 ProxyPassReverse http://112.13.14.15/event/ ProxyPreserveHost On </Location> </VirtualHost>
μλ²μμ 500 μλ¬κ° λ°μ, νλ‘μκ° λ νλ‘μ νΈλ₯Ό μ§μ νΈμΆ, νλ‘μνλ νλ‘μ νΈμ λ€λ₯Έ κ²½λ‘λ νΈμΆν΄λ λ¬Έμ κ° μλ μν©.
-
κ²λ€κ° λ€λ₯Έ μλ¬κ° μλ 500 μλ² μλ¬κ° λλ€λ μ μ΄ μ΄μνλ€. μ ν κ°νΌλ₯Ό λͺ» μ°Ύλ€κ° μνμΉ
access.log
λ₯Ό νμΈν΄λ³΄λΌλ λ§μ νμΈν΄λ³΄λNo protocol handler was valid for the URL /event/books. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
- mod_proxy μ DSO λ²μ μ μ¬μ©νλ €λ©΄ LoadModule μ μλΈλͺ¨λμ ν¬ν¨μμΌμΌ νλ€κ³ νλ€.
ν΄κ²°
-
λ¬΄μ¨ λ§μΈμ§ λͺ¨λ₯΄κ² μΌλ.. κ²μμ ν΄λ³΄λ©΄
-
httpd.conf νμΌμμ mod_proxy μ κ΄λ ¨λ μ£Όμμ ν΄μ νκ±°λ μΆκ° ν΄μ£Όλ©΄ λλ€.
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
-
κ·Έλ¦¬κ³ λμ apachectl μ μ¬μ€ν ν΄μ£Όλ©΄ μλ£