Nginx的域名跳转

 Nginx的域名跳转在配置文件中直接加入即可:listen 80;    server_name www.xubaojin.com www.601849.com;    if ($ho...

采用nginx的497状态码将http跳转到https

 497 - normal request was sent to HTTPS 解释:当网站只允许https访问时,当用http访问时nginx会报出497错误码  思路:利用error_page命令将497状态码的链接重定向到http...

Top