server {
listen 8080;
server_name localhost;
location / {
root /xxx/xxx/wordpress;
index index.html index.htm;
}
location ~ \.php$ {
root /xxx/xxx/wordpress;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
配置虚拟主机
最新推荐文章于 2021-01-04 23:31:09 发布