nginx / php-fpm / kohana

jack_cvr     Nginx configuration file     10 Sep 2011    
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
server {
listen 80;
server_name kohana3.2;
access_log /var/log/nginx/kohana3-2.access.log;
set $root /var/www/kohana3.2;
root $root;
location / {
index index.php index.html;
try_files $uri /index.php$uri;
}
location ~ \.php(/.*)?$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name;
include fastcgi_params;
}
}