【问题标题】:SSL on application in nginxnginx 中应用程序上的 SSL
【发布时间】:2014-08-19 04:34:35
【问题描述】:

我正在运行一个 nginx 网络服务器,我将所有 http 请求重定向到 https(使用自签名证书)。

问题是 - 对于在端口上运行的应用程序,我似乎无法这样做。示例:

http://my.server.ip:1234

如何修改 nginx 配置文件以强制该 url 通过 ssl?

【问题讨论】:

    标签: ssl nginx web


    【解决方案1】:

    试试这个: 返回 301 https://my.server.ip:1234$request_uri;

    【讨论】:

      猜你喜欢
      • 2017-11-07
      • 2017-01-27
      • 2017-11-29
      • 2016-05-21
      • 1970-01-01
      • 2017-03-08
      • 1970-01-01
      • 2014-09-26
      • 2020-07-19
      相关资源
      最近更新 更多