--with-http_random_index_module

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

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

在配置文件中进行配置

Nginx 模块:--with-http_random_index_module

 

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

Nginx 模块:--with-http_random_index_module

 

 

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

Nginx 模块:--with-http_random_index_module

 

 

相关文章:

  • 2021-10-10
  • 2022-12-23
猜你喜欢
  • 2021-09-29
  • 2021-10-12
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2021-07-02
  • 2021-08-12
相关资源
相似解决方案