Setup mod_proxy on apache http server

后端 未结 3 1858
慢半拍i
慢半拍i 2021-01-30 10:21

I wanted to reverse proxy a web service from my tomcat server using apache web server. I have modified the httpd.conf

LoadModule proxy_module modules/mod_proxy.         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 10:47

    So it took some time but I figured out the way to do it. There is one more module which needs to be loaded. This is what the httpd.conf looks like

    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    
    
        AllowOverride none
        Require all denied
    
    
    ProxyPass         /ROOT  http://localhost:8080/ROOT
    ProxyPassReverse  /ROOT  http://localhost:8080/ROOT
    

    This works for sure. :)

提交回复
热议问题