server{
listen 80;
server_name localhost;
location / {
root /home/img;
}
location /img{
root /home;
}
#使用别名访问静态资源
location /static {
#root /home/img;
alias /home/img;
}
}
【Nginx】配置别名
猜你喜欢
转载自blog.csdn.net/G971005287W/article/details/105251248
今日推荐
周排行