Nginx 模块:--with-http_random_index_module

--with-http_random_index_module

在主目录中随机选择一个页面作主页面

语法:
syntax:   random_index on | off
Default:   readom_index off;
Contenxt:  location

在配置文件中进行配置

此时的root路径指向/nginx/app/code下的文件
此时查看文件

在浏览器中进行刷新:
默认刷新同一个页面会进行不同的页面进行显示

原文地址:https://www.cnblogs.com/Mrchengs/p/11937960.html