随笔分类 -  Nginx

摘要:http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status 阅读全文
posted @ 2020-09-23 16:22 HarkLee 阅读(541) 评论(0) 推荐(0) 编辑
摘要:这里:https://groups.google.com/forum/#!topic/openresty/NcRSb5gTmVU 主要是: 这与 ngx_lua 无关,是较新的 nginx 核心引入的行为,即自动对 log_format 模版中的 nginx 变量的值中的非 ascii 字节进行转义 阅读全文
posted @ 2016-08-05 15:56 HarkLee 阅读(3920) 评论(0) 推荐(0) 编辑
摘要:感谢 http://my.oschina.net/leejun2005/blog/106791 代码如下: 这里有个很恶心的问题。 只能转换成纯中文的, 也就是说如果待转换的字符串中,存在正常的符号数字字母时,会报错 阅读全文
posted @ 2016-07-28 17:53 HarkLee 阅读(3084) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/jianxie/p/3990377.html一、启动 cd usr/local/nginx/sbin./nginx cd usr/local/nginx/sbin./nginx二、重启 更改配置重启nginx kill -HUP 主进程号或进程号... 阅读全文
posted @ 2015-12-08 20:07 HarkLee 阅读(237) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示