整理几段常用的 Nginx 配置,反向代理和伪静态都在里面。反向代理把域名转发到本机端口,注意转发头要带上真实 Host 与客户端信息。伪静态博客程序的路由规则按官方文档抄一份,放到站点配置里即可。配置改完记得 nginx -t 检查语法,再 reload,别直接重启。 Last modification:December 2, 2026 © Allow specification reprint Like If you think my article is useful to you, please feel free to appreciate