Nginx 可以处理你的 fastCGI。通常,与 Nginx 捆绑在一起,Apache 所做的一切都是消耗资源。
关于 WP Super Cache,如果您创建一个新文件并粘贴此文件,它会同时为您提供该文件以及 FURLs...
# if the requested file exists, return it immediately
if (-f $request_filename) {
break;
}
set $supercache_file '';
set $supercache_uri $request_uri;
if ($request_method = POST) {
set $supercache_uri '';
}
# Using pretty permalinks, so bypass the cache for any query string
if ($query_string) {
set $supercache_uri '';
}
if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
set $supercache_uri '';
}
# if we haven't bypassed the cache, specify our supercache file
if ($supercache_uri ~ ^(.+)$) {
set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;
}
# only rewrite to the supercache file if it actually exists
if (-f $document_root$supercache_file) {
rewrite ^(.*)$ $supercache_file break;
}
# all other requests go to Wordpress
if (!-e $request_filename) {
rewrite . /index.php last;
}
现在,转到您的虚拟主机文件,或者如果您捆绑您的网站,则转到 nginx.conf,然后添加一行 ..
# Wordpress WP Super Cache plugin and permalinks.
include /usr/local/nginx/conf/wordpress_params.super_cache;
.. 其中 wordpress_params.super_cache 是您所说的我们创建的文件,并给出了相对于我展示的路径。
然后重启 Nginx 并打开 WP Super Cache 插件,对于漂亮的链接,添加一个永久链接结构。
事实上,要正确安装 Nginx,尤其是使用 WordPress 和配置 fastCGI,需要了解很多。如果您愿意,这对您来说将是一个好的开始...
..Setup WordPress on NGINX (FURLs & Cache) - VPS Bible Pt 13
回复。 Virtualmin .. 我知道您想要一个 CP,但事实是,资源成本大于软件成本.. 加上用 CP 做事需要更长的时间。
我目前正在发布一个包含 21 部分的 VPS 管理系列,该系列解决了 Nginx CP 的缺失问题。坦率地说,这就是你所需要的。
一两周后,我挑战你告诉我使用 CP 更快或更好:)