配置 Nginx 服务器 URL 重定向
server {listen 443 ssl;
server_name tuan.nineopen.com;
ssl_certificate /etc/nginx/ssl/tuan.nineopen.com-ca-bundle.crt;
ssl_certificate_key /etc/nginx/ssl/tuan.nineopen.com.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
try_files $uri $uri/ /index.html;
root /home/web/tuan/ms;
index index.html index.htm;
}
}
添加一句 try_files $uri $uri/ /index.html;即可
以上是 配置 Nginx 服务器 URL 重定向 的全部内容, 来源链接: utcz.com/p/232460.html