nginx虚拟机主机配置
警告
本文最后更新于 2020-05-30 17:09,文中内容可能已过时。
server {
access_log logs/blog_access.log main;
location / {
root /var/www/blog;
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root /var/www/blog;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
请我喝杯水

