标签: nginx

6 篇文章

thumbnail
配置Nginx端口转发
如何将 Nginx 的某个端口配置到某个域名上例如我要将 9000 端口配置到 leanote.hupc.site 这个域名上 upstream leanote.hupc.site {    server localhost:9000;} server {   listen&nbs…
thumbnail
修改Nginx请求日志格式
修改 nginx.conflog_format main 'http_x_forwarded_for remote_addr - remoteuser[time_local] "request"statu…
thumbnail
用curl分析URL请求时间
如何用 curl 分析 URL 请求时间: curl -o /dev/null -s -w %{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{speed_download}"\n" "https://hupc.site/?p=284" -o:把 curl …
thumbnail
【Linux】查找符合条件的文件并删除
查找符合条件的文件并删除 找到 test 开头的文件并删除 find -name 'test*' | xargs rm -rf 如果指定递归深度 需要 - maxdepth 参数 find -maxdepth 3 -name 'test*' | xargs rm -rf
thumbnail
Windows下yaf+Nginx配置
最近有个新项目要用 yaf 框架,在 Windows 上将 yaf 框架代码部署好之后。想增加一个模块调试一下,但是添加完 module 之后,访问路由死活不会到新的 module 下,一直访问的是默认的 index 模块。网上查了半天,最终在官方的文档下找到了思路。是 Nginx 不支持 PATH_INFO 的问题,就是说,默认的 Nginx 配置,在 PHP 的环境变量 $_SERVE…