nginx配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
server {
listen 80;
server_name _;
root /var/www/wordpress;

location / {
try_files $uri $uri/ /index.php$is_args$args;
index index.php index.html index.htm;
}

location ~ \.php(.*)$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi.conf;
}
}

阅读剩下更多

默认配图