nginx随机模块—random_index

nginx 随机模板参数:

这个模块他的作用于只有在location中,具体写法如下

  location / {
    root html/code;
    andom_index on;
    #index index.html index.htm;
  }

只需要在localtion开启这个模块就好,然后在html/code这个目录中建立几个随机页面,访问我们的网站就可以出现不同的页面了。

原文地址:https://www.cnblogs.com/M87-A/p/11170528.html