03 2021 档案
摘要: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 fpm.haosheng.vip; root www; location / { # Matches URLS `$_GET['_url']` try_files $uri $uri/
阅读全文
摘要:server { listen 80; default_type text/plain; server_name pcre.haosheng.vip; root html; index index.html; location / { echo "pcre.haosheng.vip"; return
阅读全文
摘要:资料来源: https://github.com/inetfuture/blog/issues/4 https://www.nginx.com/blog/dns-service-discovery-nginx-plus/ 感谢以上两篇文章作者 location 与 proxy_pass 路径: 如果
阅读全文
摘要:server { listen 9999; # 注意这里不需要制定server_name location / { resolver 114.114.114.114; # nginx不会调用系统的DNS server去解析域名 所以需要指定DNS Server proxy_pass $scheme:
阅读全文
摘要:参考资料: Understanding Nginx Server and Location Block Selection Algorithms location 匹配规则
阅读全文
摘要:参数含义是 设置子进程接受主进程复用信号的超时时间. 控制子进程处理来自master的信号的时间,默认为0.如果正在处理请求, 很可能会收到错误报警。建议将此参数设置为相同的值 request_terminate_timeout,以便worker有时间完成处理请求。
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号