2016-02-16 125 views
0

我有haproxy作爲我的Web服務器(IIS)前面的負載平衡,運行良好。Mod_Security/Haproxy/Web服務器(IIS)

現在我想要配置apache的mod_security進行請求過濾,然後將請求傳遞給haproxy進行負載均衡。

我已經在centos上安裝了mod_security,現在我該如何告訴我的WAF(mod_security)將請求轉發給haproxy。

回答

0

好吧,我得到它解決了......添加下列行到httpd.conf文件

ProxyPreserveHost On 
ProxyRequests off 
ProxyVia Off 
ProxyPass/http://x.x.x.x:80/ 
ProxyPassReverse/http://x.x.x.x:80/ 

注:與您的實際IP替換X.X.X.X