Skip to content

Instantly share code, notes, and snippets.

@clone1018
Created March 26, 2014 19:10
Show Gist options
  • Save clone1018/9790935 to your computer and use it in GitHub Desktop.
Save clone1018/9790935 to your computer and use it in GitHub Desktop.
...
location ~ \.php$ {
root /var/www/projects/fghj/public;
try_files $uri $uri/ /index.php?$args ;
index index.html index.htm index.php;
fastcgi_index index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param APPLICATION_ENV=development;
fastcgi_param APPLICATION_ENV=development;
fastcgi_param APPLICATION_ENV=development;
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment