nginx 配置小程序验证txt文件

user    root;

 

location ~ \.(mp4|png|txt) {
root /home/xxxx/yyyy/zzzz;
autoindex on;

}


location / {
proxy_pass http://127.0.0.1:8080/zzzz/;
index index.html index.htm;
}


error_page 404 /404.html;
location = /404.html {
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}

posted @ 2020-10-26 19:11  walkersss  阅读(1661)  评论(0编辑  收藏  举报