server {
listen 80;
server_name localhost;
location / {
root /pdenv/data/html/;
index index.html index.htm index.php;
autoindex on;
}
location ~ ^/space/(.*.php)$ {
alias /pdenv/data/html/Kohana/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location = /space {
rewrite ^ $scheme://$host$uri/ permanent;
}
location /space/ {
index index.php;
alias /pdenv/data/html/Kohana/;
}
location ~ .php$ {
root /pdenv/data/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}