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/; }