server {
listen 80;
server_name xxx.xxxx.com;
location / {
proxy_pass http://xxx.xxxx.com;
}
location = / {
index index.html;
root C:/developer/static/mall;
}
location ~* \.(html|htm|gif|jpg|jpeg|bmp|png|ico|txt|js|css|map|woff|ttf)$ {
root C:/developer/static/mall;
}
}
nginx配置访问本地静态资源
最新推荐文章于 2024-06-27 03:30:00 发布