0
点赞
收藏
分享

微信扫一扫

【Nginx】配置别名

千白莫 2022-12-13 阅读 88


server{

listen 80;

server_name localhost;

location / {

root /home/img;

}

location /img{

root /home;

}

#使用别名访问静态资源

location /static {

#root /home/img;

alias /home/img;

}

}

 

举报

相关推荐

0 条评论