Replies: 3 comments
-
Complete. 已自行解决。如下是mediacms使用外部nginx多层反向代理方法:一层代理,location中有proxy_set_header Host $http_host;
二层代理:localtion中无proxy_set_header Host $http_host;
|
Beta Was this translation helpful? Give feedback.
-
补充:本人用的nginx是1.20.1,有些版本可能某些模块不支持,不支持的可以注释掉再试试。注意:多试试。 |
Beta Was this translation helpful? Give feedback.
-
I have to say, you're overcomplicating things. MediaCMS determines whether to use HTTP or HTTPS based on the request type. You just need to ensure it receives the correct I wasted a considerable amount of time on this myself, until I realized another forwarding tool was overriding my 我不得不说, 你把问题变得复杂了, mediacms会根据请求来的类型决定是HTTP还是HTTPS , 你只要保证它接受到正确的 我曾经也在这件事情上浪费了不少时间,直到我发现是因为我使用了其他转发工具给我覆盖了 |
Beta Was this translation helpful? Give feedback.
-
Describe the issue
A clear and concise description of what the issue is.
To Reproduce
Steps to reproduce the issue:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
外部nginx,如何反向代理https到该http?
我在配置反向代理过程中发现http被前端写死http://,无法转发到https://
换了proxy nginx docker容器,浏览器提示域名被拒绝访问
How to reverse proxy HTTPS to this HTTP using external nginx?
I found that HTTP was written as' http://'by the frontend during the reverse proxy configuration process, making it impossible to forward to' https://'
Replaced proxy nginx docker container, browser prompts domain access denied ,“ERR_CONNECTION_REFUSED”.
Beta Was this translation helpful? Give feedback.
All reactions