Skip to content

Instantly share code, notes, and snippets.

@gnuget
Created September 6, 2011 05:16
Show Gist options
  • Save gnuget/1196653 to your computer and use it in GitHub Desktop.
Save gnuget/1196653 to your computer and use it in GitHub Desktop.
Nginx Configuration for zanphp (https://github.com/MilkZoft/ZanPHP )
server {
listen 80;
server_name zanphp.dev;
roto /path/to/project/zanphp; #change this for the location of your project
index index.php;
if (!-f $request_filename) {
rewrite ^/(.+)$ /index.php?/$1 last;
break;
}
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /Path/to/nginx/conf/nginx/fastcgi_params; #change this for the location of your nginx conf
}
}
@marlncpe
Copy link

u have a error in roto is root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment