upstreambackend{server192.168.0.100:80;server192.168.0.100:81;}server{listen80;server_namewww.abc.comabc.com;root/opt/wwwroot/abc.com/;location/{proxy_passhttps://backend;proxy_set_headerHost$host;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;proxy_hide_headerX-Powered-By;}location=/{indexindex.htmlindex.htmindex.php;}}我想當(dāng)用戶訪問(wèn)www.abc.com/的時(shí)候不走proxy_pass.直接訪問(wèn)本地的/opt/wwwroot/abc.com/index.html頁(yè)面,其余的請(qǐng)求都走proxy_pass搞了半天搞不定,有些怪異,求大神們幫忙看看。。
nginx 匹配首頁(yè)怪異問(wèn)題
12345678_0001
2019-04-09 20:24:39