随笔分类 -  Nginx + Lua(OpenResty)

摘要:下载:https://github.com/Kong/lua-kong-nginx-module#install ./configure \ --prefix=/usr/local/openrestys/openresty-1.19.3.1 \ --with-cc-opt="-I/usr/local 阅读全文
posted @ 2021-06-29 17:05 豆腐居士 阅读(87) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-16 14:18 豆腐居士 阅读(87) 评论(0) 推荐(0)
摘要:1. 500 Internal Server Error 产生原因:主要是PHP执行脚本过程中产生致命的一些错误。 nginx error中的记录: 2. 502 Bad Gateway 产生原因:fpm挂掉nginx链接不上、fpm不再接受请求(请求打爆)、fpm 执行超时(request_ter 阅读全文
posted @ 2021-04-08 18:17 豆腐居士 阅读(415) 评论(0) 推荐(0)
摘要:PHP timeout配置: 1. php.ini max_execution_time 2. php-fpm.conf request_terminate_timeout Nginx timout参数 1. fastcgi fastcgi_connect_timeout 60s; 与FastCGI 阅读全文
posted @ 2021-04-08 16:59 豆腐居士 阅读(970) 评论(0) 推荐(0)
摘要:server { listen 80; default_type text/plain; server_name fpm.haosheng.vip; # Syntax: root path; # Default:root html; # Context: http, server, location 阅读全文
posted @ 2021-03-25 15:08 豆腐居士 阅读(334) 评论(0) 推荐(0)
摘要:server { listen 80; default_type text/plain; server_name pcre.haosheng.vip; root html; index index.html; location / { echo "pcre.haosheng.vip"; return 阅读全文
posted @ 2021-03-17 16:53 豆腐居士 阅读(66) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-17 14:24 豆腐居士 阅读(244) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-16 14:23 豆腐居士 阅读(372) 评论(0) 推荐(0)
摘要:参考资料: Understanding Nginx Server and Location Block Selection Algorithms location 匹配规则 阅读全文
posted @ 2021-03-12 15:05 豆腐居士 阅读(56) 评论(0) 推荐(0)
摘要:PHP公钥加密: 1 <?php 2 $pubKey = <<<EOF 3 BEGIN PUBLIC KEY 4 ... 这里是示意... 5 END PUBLIC KEY 6 EOF; 7 $pubKey = openssl_pkey_get_public($pubKey); 8 $part_le 阅读全文
posted @ 2021-03-03 17:13 豆腐居士 阅读(598) 评论(0) 推荐(0)
摘要://openresty安装 http://openresty.org/ brew updatebrew install pcre openssl ./configure --prefix=/usr/local/openresty --with-cc-opt="-I/usr/local/opt/ope 阅读全文
posted @ 2016-09-27 09:28 豆腐居士 阅读(2347) 评论(0) 推荐(0)