server {
listen 80;
server_name localhost;
root /path;//这里 `/path` 改为你 wordpress 所在的目录
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi.conf;
fastcgi_pass 127.0.0.1:9000;
}
}