Skip to content

Instantly share code, notes, and snippets.

@davidcoallier
Created May 14, 2010 11:59
Show Gist options
  • Save davidcoallier/401064 to your computer and use it in GitHub Desktop.
Save davidcoallier/401064 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name admin.api.frapi;
access_log /var/log/nginx/admin.api.frapi/access.log;
location / {
if (-f $request_filename) {
break;
}
rewrite ^/(.*)$ /index.php?$1 last;
root PATH/src/frapi/admin/public;
index index.php;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME PATH/src/frapi/admin/public/$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment