<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nginx on 一叶</title><link>https://zhangzhao.me/tags/nginx/</link><description>Recent content in Nginx on 一叶</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sat, 22 Nov 2025 12:15:12 +0000</lastBuildDate><atom:link href="https://zhangzhao.me/tags/nginx/index.xml" rel="self" type="application/rss+xml"/><item><title>WordPress禁止含参数url访问，阻止机器人高频采集</title><link>https://zhangzhao.me/wordpress-prohibits-access-to-urls-containing-parameters-to-prevent-highfrequency-collection-by-robots/</link><pubDate>Sat, 22 Nov 2025 12:15:12 +0000</pubDate><guid>https://zhangzhao.me/wordpress-prohibits-access-to-urls-containing-parameters-to-prevent-highfrequency-collection-by-robots/</guid><description>最近我日常看看我另一个博客的服务器日志，用Wordfence插件分析流量。结果发现不是我的插件太多导致服务器负载大，而是单纯采集爬虫太多、机器人请求太多、垃圾注入和垃圾评论机器人太多，导致偶尔数据库绷不住挂掉，导致502错误或者宕机。 具体分析一下高频访问的机器人IP、user-agent和url，发现大致是几&amp;hellip;</description></item><item><title>Nginx下由于伪静态导致的WordPress后台404错误</title><link>https://zhangzhao.me/nginx%E4%B8%8B%E7%94%B1%E4%BA%8E%E4%BC%AA%E9%9D%99%E6%80%81%E5%AF%BC%E8%87%B4%E7%9A%84wordpress%E5%90%8E%E5%8F%B0404%E9%94%99%E8%AF%AF/</link><pubDate>Thu, 17 Oct 2013 12:31:58 +0000</pubDate><guid>https://zhangzhao.me/nginx%E4%B8%8B%E7%94%B1%E4%BA%8E%E4%BC%AA%E9%9D%99%E6%80%81%E5%AF%BC%E8%87%B4%E7%9A%84wordpress%E5%90%8E%E5%8F%B0404%E9%94%99%E8%AF%AF/</guid><description>网站程序重装后，一度以为不用继续治疗了，没想到才好了几天，这货又犯病了，跟之前的状态差不多，只是以前连后台都无法进入，现在则是能够进入后台首页了，不过也仅仅止于此。在网上搜索了一番之后，发现这个问题很多人都碰到过，应该是nginx下伪静态的问题，我之前大半年里边没碰到这问题是因为我一开始就&amp;hellip;</description></item><item><title>Nginx下WordPress 500错误的艰辛</title><link>https://zhangzhao.me/wordpress-nginx-error500/</link><pubDate>Sun, 13 Oct 2013 08:37:40 +0000</pubDate><guid>https://zhangzhao.me/wordpress-nginx-error500/</guid><description>自从把VPS环境换到LNMP下之后就经常出现500错误的情况，但是同一服务器上其他网站都没有什么问题，恐怕真的追究起来还是WP的后台有些什么问题，平时500错误也就是进不了后台，重启一下nginx就好了，但是上次升级了两个插件之后却发现网站后台完全无法打开了，首页文章打开正常，但是也仅仅是那些缓存的文章&amp;hellip;</description></item><item><title>LuManager切换至Tengine后Wordpress找不到页面的解决办法</title><link>https://zhangzhao.me/error-tengine-switch-wordpress/</link><pubDate>Mon, 04 Mar 2013 19:53:32 +0000</pubDate><guid>https://zhangzhao.me/error-tengine-switch-wordpress/</guid><description>好吧，今天是新年里面正式回归网站更新的第一天，服务器软件什么的也好久没有更新了，手生了，各种折腾。把网站风格也改了一下，去掉了顶部图片和背景图片，虽然这俩对速度并没有啥太大的影响，可是放那里也是上百K的文件，而且和新背景颜色严重不搭。 看到LuManager开始周期性更新了，就连升了几级。同时觉&amp;hellip;</description></item><item><title>LuManager更新nginx等组件</title><link>https://zhangzhao.me/lumanager-upgrading-nginx/</link><pubDate>Wed, 23 May 2012 16:56:58 +0000</pubDate><guid>https://zhangzhao.me/lumanager-upgrading-nginx/</guid><description>一叶的几个站都是建在VPS上的，由于在技术方面太白了，基本上没有什么linux和服务器的技术基础，所以采用了一套傻瓜式的面板：LuManager，他直接集成了LANMP包，完全的自动安装，我们只要按照官网给出的教程直接在ssh客户端上输入下载和安装Lumanager的命令，接下来的事情基本上不用操心了，L&amp;hellip;</description></item><item><title>nginx下Wordpress和Typecho修改固定链接后301重定向</title><link>https://zhangzhao.me/change-permalink-helper/</link><pubDate>Mon, 21 May 2012 22:09:20 +0000</pubDate><guid>https://zhangzhao.me/change-permalink-helper/</guid><description>上一篇文章写到了我遇到的一些重定向问题，就是在重设固定链接之后，发现旧的链接都变成死链了，这样对自己的网站不好，对于搜索引擎的收录更加不好，特别是别人通过搜索进来时却显示个not found，特失败。在摸索两天之后，找到了两种解决办法，可供参考。 非插件：     第一种，这&amp;hellip;</description></item><item><title>更换了固定链接，不会写nginx的301，求助！</title><link>https://zhangzhao.me/changing-wordpress-permanentlink-style/</link><pubDate>Sun, 20 May 2012 18:22:26 +0000</pubDate><guid>https://zhangzhao.me/changing-wordpress-permanentlink-style/</guid><description>昨天心血来潮，把“嘘！一叶”的固定连接形式从/%postname%/换成了/%postname%.zz&amp;hellip;，因为zz是我姓名的拼音首字母,之前也曾经想过要不要用omg或者学大猫用orz的后缀的，也设定过，可是看起来总觉得怪怪的，卖萌可耻，就换成了zz了。     然后问题来了，由于我这边的突变，百度和谷歌&amp;hellip;</description></item></channel></rss>