Groups
Groups
Sign in
Groups
Groups
BPyUG~北京Python用户组
Conversations
About
Send feedback
Help
nginx https重定向到http
38 views
Skip to first unread message
Hao Weibo
unread,
May 2, 2018, 4:46:46 AM
5/2/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BPyUG~北京Python用户组
server {
listen 80 default_server;
index index.html;
server_name
abc.net
;
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 443;
server_name
abc.net
www.abc.net
;
location / {
proxy_pass
http://www.abc.net
;
}
# rewrite ^http://$server_name$request_uri? permanent;
}
本机未配置ssl证书,现在想通过重定向的方式,将
https://www.abc.net
,重定向http访问,上述的配置没看出什么错误,但是访问
https://www.abc.net
时,并不能跳转到http。
是哪里出了问题呢
Reply all
Reply to author
Forward
0 new messages