首页 > Web开发 > 详细

nginx-ngx_http_random_index_module

时间:2018-10-26 10:14:41      阅读:182      评论:0      收藏:0      [点我收藏+]

模块简介:在收到以"/"为结尾的请求时,在对应的目录下随机选择一个文件作为index文件。

模块类型:常用标准http模块

使用实例:

        location /privacy_policy/ {
               root /opt/linkface/backend-api/public;
               try_files $uri $uri/ /B-LAP-privacy_policy.html /index.html /index.htm;
        }

这里的应用场景使用try_files,不能使用index。

 

nginx-ngx_http_random_index_module

原文:https://www.cnblogs.com/slim-liu/p/9854632.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!