配置443访问apollo,为啥登录跳转之后,变成了到http了导致跳转失败 #3794
feixia5712
started this conversation in
Show and tell
Replies: 1 comment
-
host 的配置需要改成这样 proxy_set_header Host $http_host;
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
nginx配置如下
server {
listen 8070 ssl;
server_name localhost;
ssl_certificate cert/apollo/apollo-cert.pem;
ssl_certificate_key cert/apollo/apollo-key.key;
location / {
proxy_pass http://192.168.1.180:8070;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
}
}
浏览器访问
https://ip:8070/signin可以是登录页面
但是输入密码之后,跳转失败
请问下该如何配置
Beta Was this translation helpful? Give feedback.
All reactions