首页 > 解决方案 > nginx 从 HTTPS 重定向到 HTTP

问题描述

我有一个在本地运行并暴露于 http的WireMock应用程序。而且,我可以在http://localhost:8090/user/test 尝试使用 nginx 将 https CLIENT 调用重定向到后端wiremock http 时访问wiremock 服务器,即http://localhost:8090/user/test 我已尝试使用以下nginx.conf设置,但它会引发以下错误。

错误:

curl -X POST https://localhost

curl: (60) Peer's certificate issuer has been marked as not trusted by the user
:
:
:

nginx.conf

标签: nginxnginx-reverse-proxynginx-config

解决方案


推荐阅读