随笔分类 - 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
阅读全文
摘要:1. 500 Internal Server Error 产生原因:主要是PHP执行脚本过程中产生致命的一些错误。 nginx error中的记录: 2. 502 Bad Gateway 产生原因:fpm挂掉nginx链接不上、fpm不再接受请求(请求打爆)、fpm 执行超时(request_ter
阅读全文
摘要:PHP timeout配置: 1. php.ini max_execution_time 2. php-fpm.conf request_terminate_timeout Nginx timout参数 1. fastcgi fastcgi_connect_timeout 60s; 与FastCGI
阅读全文
摘要:server { listen 80; default_type text/plain; server_name fpm.haosheng.vip; # Syntax: root path; # Default:root html; # Context: http, server, location
阅读全文
摘要:server { listen 80; default_type text/plain; server_name pcre.haosheng.vip; root html; index index.html; location / { echo "pcre.haosheng.vip"; return
阅读全文
摘要:参考资料: Understanding Nginx Server and Location Block Selection Algorithms location 匹配规则
阅读全文
摘要: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
阅读全文
摘要://openresty安装 http://openresty.org/ brew updatebrew install pcre openssl ./configure --prefix=/usr/local/openresty --with-cc-opt="-I/usr/local/opt/ope
阅读全文

浙公网安备 33010602011771号