nginx - 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
:
:
:
解决方案
推荐阅读
- flutter - 我可以溢出 Container 中的小部件以使其像剪辑一样吗?
- computational-geometry - 使用 CGAL 的凸壳平面的可能错误方程
- laravel - VPS 上的 Voyager 管理菜单为空
- javascript - 在 useEffect React hook 中在不同时间实现多个 Firestore 调用
- c - 做..虽然循环不会停止等待 uinput
- ios - 图像视图未出现在屏幕上
- php - 如何使用验证检查数据库中是否不存在数据?
- c# - Unity C# Firebase 无法在任务范围内修改/访问列表变量
- php - 结帐后的空白白页也客户在 OpenCart 上自动注销
- javascript - 我想用 split 方法分开并在 javascript 中映射一个对象