摘要:
·摘要这个模块提供简单的基于主机的访问控制。ngx_http_access_module这个模块可以详细的检查客户端IP,并且按顺序执行第一条匹配的规则。如下例:location / { deny 192.168.1.1; allow 192.168.1.0/24; allow 10.1.1.0/1 阅读全文
posted @ 2018-01-18 14:10
Kerwing
阅读(1206)
评论(0)
推荐(0)
摘要:
这个模块为后端的服务器提供简单的负载均衡(轮询(round-robin)和连接IP(client IP))如下例:upstream backend { server backend1.example.com weight=5; server backend2.example.com:8080; se 阅读全文
posted @ 2018-01-18 14:07
Kerwing
阅读(537)
评论(0)
推荐(0)
摘要:
alias 语法:alias file-path|directory-path;默认值:no使用字段:location这个指令指定一个路径使用某个某个,注意它可能类似于root,但是document root没有改变,请求只是使用了别名目录的文件 location /i/ { alias /spoo 阅读全文
posted @ 2018-01-18 13:59
Kerwing
阅读(934)
评论(0)
推荐(0)
摘要:
error_log 语法:error_log file [ debug | info | notice | warn | error | crit ]默认值:${prefix}/logs/error.log指定Nginx服务(与FastCGI)错误日志文件位置。每个字段的错误日志等级默认值: 1.m 阅读全文
posted @ 2018-01-18 10:44
Kerwing
阅读(305)
评论(0)
推荐(0)

浙公网安备 33010602011771号