【问题标题】:nginx localhost servername work fine on chrome but not on firefoxnginx localhost server_name 在 chrome 上工作正常,但在 firefox 上不行
【发布时间】:2016-03-02 16:15:32
【问题描述】:

我刚刚在我的 localhost 服务器 (ubuntu) 中安装并配置了 nginx,并将我的服务器名称设置为 example.devsites-availablesites-enabled 中。

问题是我的示例网站在 chrome 上运行良好,但在 firefox 上运行不正常。 我不知道是什么问题。

【问题讨论】:

  • 浏览器对 localhost 的解释有点不同,你能发布你的配置吗?
  • 首先,您能否发布本地主机的 curl 输出 curl http://127.0.0.1

标签: google-chrome firefox nginx localhost


【解决方案1】:

我知道它已经过时了,但它适用于 Firefox,打开首选项 -> 高级 -> 网络打开设置并检查手动代理配置并设置代理 HTTP 127.0.0.1 和端口 80

但只有在开发站点时才使用它,因为其他站点可能无法正常工作

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-15
    • 1970-01-01
    • 2016-04-11
    • 1970-01-01
    相关资源
    最近更新 更多