久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      nginx反向代理報(bào)錯(cuò)400

      當(dāng)用nginx做負(fù)載均衡的時(shí)候,nginx的配置文件如下:

            upstream server_pools {           server 10.0.0.7:80  weight=1;           server 10.0.0.8:80  weight=1;  

      當(dāng)客戶(hù)端訪(fǎng)問(wèn)時(shí)出現(xiàn)報(bào)錯(cuò)如下:

        [root@lb02 ~]# curl  www.hahaetiantian.org    

      Bad Request

      Your browser sent a request that this server could not understand.

      Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.

      [root@lb02 ~]# curl www.hahaetiantian.org www

      查看日志報(bào)錯(cuò)并不能找到原因,但是根據(jù)400報(bào)錯(cuò)以及對(duì)http協(xié)議的原理了解得知是因?yàn)檎?qǐng)求頭的原因,最后在網(wǎng)上找到解決辦法,原因是因?yàn)閡pstream后面的名稱(chēng)有下劃線(xiàn)使得代理無(wú)法識(shí)別,修改如下:

            upstream server-pools {           server 10.0.0.7:80  weight=1;           server 10.0.0.8:80  weight=1;

      然后再次訪(fǎng)問(wèn)結(jié)果如下:

        [root@lb02 ~]# curl  www.etiantian.org  apache www  [root@lb02 ~]# curl  www.etiantian.org  www

      贊(1)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)