
Nginx 访问静态文件配置
NGINX某些配置
1.运行访问某些文件
location /files {
if ($uri !~* \.(png|jpg)$) {
return 403;
}
root /usr/local/nginx/html;
autoindex on;
}
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 SNTU Studio
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果