省略nginx其它配置,单独列举一个独立虚拟主机配置;

server {

listen 80;
server_name www.domain.com;

proxy_redirect off;

rewrite /wp-admin$ $scheme://$host$uri/ permanent;

#将访问域名后面跟wp-admin请求的,将在www.domain.com/wp-admin后面自动补上"/",即访问请求地址修改为 www.domain.com/wp-admin/.

location / {
root /home/wwwroot/blog.ptmind.co.jp;
index index.php index.html index.htm;
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
}
}