欢迎访问我的独立博客

Nginx强制使用https访问(http跳转到https)

index.html
<html> <meta http-equiv="refresh" content="0;url=https://www.starRTC.com/"> </html>
server {     listen 80;     server_name www.starRTC.com;     location / {                 #index.html放在虚拟主机监听的根目录下         root /www;     }         #将404的页面重定向到https的首页     error_page  404 https://www.starRTC.com/; }
posted @ 2018-02-01 09:51  github.com/starRTC  阅读(153)  评论(0编辑  收藏  举报