03 2021 档案

摘要: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 豆腐居士 阅读(330) 评论(0) 推荐(0)
摘要:server { listen 80; default_type text/plain; server_name fpm.haosheng.vip; root www; location / { # Matches URLS `$_GET['_url']` try_files $uri $uri/ 阅读全文
posted @ 2021-03-25 15:07 豆腐居士 阅读(147) 评论(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 豆腐居士 阅读(64) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-17 14:24 豆腐居士 阅读(243) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-16 14:23 豆腐居士 阅读(370) 评论(0) 推荐(0)
摘要:资料来源: https://github.com/inetfuture/blog/issues/4 https://www.nginx.com/blog/dns-service-discovery-nginx-plus/ 感谢以上两篇文章作者 location 与 proxy_pass 路径: 如果 阅读全文
posted @ 2021-03-16 10:41 豆腐居士 阅读(115) 评论(0) 推荐(0)
摘要:server { listen 9999; # 注意这里不需要制定server_name location / { resolver 114.114.114.114; # nginx不会调用系统的DNS server去解析域名 所以需要指定DNS Server proxy_pass $scheme: 阅读全文
posted @ 2021-03-15 16:00 豆腐居士 阅读(369) 评论(0) 推荐(0)
摘要:参考资料: Understanding Nginx Server and Location Block Selection Algorithms location 匹配规则 阅读全文
posted @ 2021-03-12 15:05 豆腐居士 阅读(52) 评论(0) 推荐(0)
摘要:参数含义是 设置子进程接受主进程复用信号的超时时间. 控制子进程处理来自master的信号的时间,默认为0.如果正在处理请求, 很可能会收到错误报警。建议将此参数设置为相同的值 request_terminate_timeout,以便worker有时间完成处理请求。 阅读全文
posted @ 2021-03-11 15:37 豆腐居士 阅读(249) 评论(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 豆腐居士 阅读(593) 评论(0) 推荐(0)