静态资源配置
访问路径 http://localhost:8081/2022/04/test.png
uri: 2022/04/test.png
找到静态资源的的路径: data/image/2022/04/test.png
server {
listen 8081;
location / {
root data/image/; #root 目录;
try_files $uri $uri/ /index.html; # 寻找root 目录下面的 uri路径资源
}
}