The ngx_http_random_index_module module processes requests ending with the slash character (‘/’) and picks a random file in a directory to serve as an index file.
就是用户访问时,给一个随机的主页
Example Configuration
随机主页注意:*.html 可以访问所有html文件
Directives
syntax: random on | off;
default: random off;
context: location
测试:
web1 web2 web3注意:需要提前准备好几个HTML文件,放在相应的目录下
网友评论