使用随机主页需要使用到的模块 http_random_index_module
添加配置代码,vi /etc/nginx/conf.d/default.conf
location / {
root /usr/share/nginx/html;
#index index.html index.htm;
random_index on;
}
需要在/usr/share/nginx/html
目录下面建多个html文件
使用随机主页需要使用到的模块 http_random_index_module
添加配置代码,vi /etc/nginx/conf.d/default.conf
location / {
root /usr/share/nginx/html;
#index index.html index.htm;
random_index on;
}
需要在/usr/share/nginx/html
目录下面建多个html文件
上一篇:nginx限制请求
下一篇:关于nginx的配置理解
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M