Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # default server
- server {
- listen 80;
- server_name local.kohanaphp.com;
- root /Volumes/Webserver/Checkout/projects/kohana/v3;
- location / {
- index index.php index.html index.htm;
- try_files $uri $uri/ index.php$uri;
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /opt/local/share/nginx/html;
- }
- location ~ \.php($|/) {
- set $script index.php;
- set $path_info "";
- if ($uri ~ "^(.+\.php)(/.*)") {
- set $script $1;
- set $path_info $2;
- }
- fastcgi_param PATH_INFO $path_info;
- include /opt/local/etc/nginx/fastcgi.conf;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root/$script;
- }
- }
Add Comment
Please, Sign In to add comment