您的位置:首页 > 运维架构 > Nginx

nginx使用 -- 模块

2018-12-26 16:54 134 查看
#sub_filter  : 替换字符串
location / {
root  /usr/share/nginx/html;
random_index on;
index  index.html index.htm;
sub_filter 'aaa' 'bbb';
sub_filter_once off; //默认是on 只替换第一个  off 替换全部
}

#stub_status : nginx监控   www.xxx.com/nginxstatus  访问
location /nginxstatus {
stub_status on;
}

#random_index : 随机选择页面   在html下随机选择一个页面加载
location / {
root /usr/share/nginx/html;
random_index on;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: