您的位置:首页 > 理论基础 > 计算机网络

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

2018-02-01 09:51 996 查看
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/;}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: