nginx配置访问图片等静态资源
配置:
通过使用别名属性alias 配置真是图片路径即可
location /public/uploads/ { alias /www/wwwroot/quick.com/v2.0.0/dist/public/uploads/; autoindex on; }
标签:访问,静态,配置,nginx,alias,public,图片 From: https://www.cnblogs.com/zlp520/p/17033002.html
nginx配置访问图片等静态资源
配置:
通过使用别名属性alias 配置真是图片路径即可
location /public/uploads/ { alias /www/wwwroot/quick.com/v2.0.0/dist/public/uploads/; autoindex on; }
标签:访问,静态,配置,nginx,alias,public,图片 From: https://www.cnblogs.com/zlp520/p/17033002.html