首页 > 其他 > 详细

nginx判断为404跳转

时间:2018-11-09 18:08:22      阅读:421      评论:0      收藏:0      [点我收藏+]

server {
listen 80;
server_name localhost www.beautysaas.com 120.26.126.123;
error_page 404 = http://www.beautysaas.com/$1;   #这个不带url后缀

 

 


location / {
root html;
index index.html index.htm index.php;
try_files $uri $uri/ /index.html?$query_string;    #这个是带url后缀的
}

nginx判断为404跳转

原文:https://www.cnblogs.com/byfboke/p/9936479.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!