主要应用场景:
访问nginx不同目录下的静态资源。

核心配置代码:

location /img/ {
           alias /home/software/nginx/html/img/;
           autoindex on;
}

 

相关文章:

  • 2021-11-05
  • 2021-11-20
  • 2021-09-05
  • 2021-07-29
  • 2021-05-26
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2021-04-30
  • 2022-12-23
  • 2021-05-17
  • 2021-06-08
  • 2021-07-20
  • 2021-11-03
  • 2021-11-25
相关资源
相似解决方案