Nginx 的配置很簡單:
view sourceprint?
1
location ~ \.php$ {
2
#root html;
3
root /var/www/html;
4
fastcgi_pass 127.0.0.1:9000;
5
fastcgi_index index.php;
6
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
7
include fastcgi_params;
8
}
OK,重啟 Nginx 完成配置:
1
service nginx restart