この投稿http://www.ewanleith.com/blog/900/10-million-hits-a-day-with-wordpress-using-a-15-serverを見た後、サーバーを apache2 から nginx に変更しました。私はコンピュータ オタクではありません。手順に従いました。その後、このサイトは完璧でしたが、1 つのことを除いては、www 以外から www への変更でした。これを行う方法についてネットで検索しました。彼らが言った modrewrite を試してみましたが、最悪になりました。今のところ、wordpress を使用し、一般設定http://www.pageantly.comに設定しているため、www に向けられています。それでも、私は静的ディレクトリを持っており、それは単純な非www. /etc/nginx/conf.d/ にある私の default.conf と、上記のリンクを含むチュートリアルをご覧ください。
server {
server_name pageantly.com www.pageantly.com;
root /var/www/;
listen 8080;
## This should be in your http block and if it is, it's not needed here.
index index.html index.htm index.php;
include conf.d/drop;
location / {
# This is cool because no php is touched for static content
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location ~ \.php$ {
fastcgi_buffers 8 256k;
fastcgi_buffer_size 128k;
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/dev/shm/php-fpm-www.sock;
}
# BEGIN W3TC Page Cache cache
location ~ /wp-content/w3tc/pgcache.*html$ {
add_header Vary "Accept-Encoding, Cookie";
}
[...]
}
# END W3TC Page Cache core
}