nginx伪静态过滤静态文件 阿里云Nginx伪静态

location / {
try_files $uri $uri/ @page;
}

location @page {
rewrite ^(.*)$ /index.php/$1;
}

location ~ /\.ht {
deny all;
}

 

 

参考try_files资料

Nginx的try_files指令详解_zzhongcy的博客-CSDN博客_nginx try_files

posted @ 2022-08-04 23:01    阅读(226)  评论(0编辑  收藏  举报