nginx localhost的坑

在nginx.conf配置文件里,如果需要配置 localhost 和其它域名 同端口共存的server,一定要保证 localhost 所在的server 在nginx.conf里的顺序是第一位的,不然访问 localhost 的server时会访问到同端口的第一个server ,而不是 localhost 所在的server

原文地址:https://www.cnblogs.com/undefined-j/p/13672322.html