如果我使用Lighttpd作为wp服务器,我如何使用缓存插件,如w3总缓存或wp超级缓存?配置lighttpd需要您的帮助。
谢谢。
发布于 2012-06-12 08:05:01
下面的脚本获取客户端询问的url。它检查缓存中是否有一个新版本的静态HTML页面,如果有,它将对此进行服务器化。如果文件根本不存在,或者它已经过期(我检查它的修改日期),那么请求将被转发到PHP,以便它能够得到新的服务。
。
magnet.attract-physical-path-to = ( server.document-root + "/rewrite.lua" )lighttpd主机配置现在看起来应该有点类似于以下内容:
$HTTP["host"] == "myblog.com" {
server.document-root = “/srv/www/myblog/wordpress”
accesslog.filename = “/var/log/lighttpd/myblog/access.log"
magnet.attract-physical-path-to = ( server.document-root + “/rewrite.lua” )
}发布于 2012-06-12 12:22:13
能得到更好的支持。http://wiki.nginx.org,http://wiki.nginx.org/Wordpress
WP插件开发人员在他的博客:http://ocaoimh.ie/2009/11/23/wordpress-nginx-wp-super-cache/上为他的插件重写了Nginx规则
https://wordpress.stackexchange.com/questions/50156
复制相似问题