Nginx如何配置重定向
在nginx中如何实现http重定向到https
server {
listen 80;
server_name wx.tongzhoushidai.com;
rewrite ^(.*)$ https://wx.tongzhoushidai.com;
access_log off;
}
server {
listen 80;
server_name wx.tongzhoushidai.com;
rewrite ^(.*)$ https://wx.tongzhoushidai.com;
access_log off;
}