Apache mod_proxy 문제

· β˜• 1 min read · πŸ‘€... views

문제

  • μ•„νŒŒμΉ˜ ν”„λ‘μ‹œλ₯Ό μ„€μ •ν•  일이 μƒκ²¨μ„œ 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 을 μž¬μ‹€ν–‰ ν•΄μ£Όλ©΄ μ™„λ£Œ

Share on

snack
WRITTEN BY
snack
Web Programmer


What's on this Page