摘要:
报错如下: 1 [15:08:30 root@localhost src]#git clone https://github.com/openresty/echo-nginx-module.git 2 Cloning into 'echo-nginx-module'... 3 error: RPC 阅读全文
摘要:
一、修改配置 server { server_name www.a.net; root /data/site1; location / { } location /admin { root /data/; auth_basic "Admin Page"; auth_basic_user_file / 阅读全文
摘要:
ngx_http_access_module模块 可实现基于ip的访问控制功能 allow address | CIDR | unix: | all; deny address | CIDR | unix: | all; http, server, location, limit_except 自上 阅读全文
摘要:
默认nginx不开启缓存 open_file_cache off; nginx可以缓存以下三种信息: (1) 文件元数据:文件的描述符、文件大小和最近一次的修改时间 (2) 打开的目录结构 (3) 没有找到的或者没有权限访问的文件的相关信息max=N:可缓存的缓存项上限;达到上限后会使用LRU算法实 阅读全文