1分钟
避免流氓浏览器404劫持
error_page code … [=response] uri;
模块:ngx_http_core_module
定义错误页,以指定的响应状态码进行响应
可用位置:http, server, location, if in
location
error_page 404 /404.html
error_page 404 =200 /404.html
修改配置文件
再次访问:
修改404**页面到指定默认页面**
keepalive_timeout timeout header_timeout;
设定保持连接超时时长,0**表示禁止长连接,默认为75s**
keepalive_requests number;
在一次长连接上所允许请求的资源的最大数量
默认为100
学员评价