Skip to content

Instantly share code, notes, and snippets.

@vedovelli
Created August 1, 2016 19:58
Show Gist options
  • Save vedovelli/b92e301344d87de84c104cd99f62fa3a to your computer and use it in GitHub Desktop.
Save vedovelli/b92e301344d87de84c104cd99f62fa3a to your computer and use it in GitHub Desktop.
server {
listen 80;
listen 443 ssl;
server_name cbg.app;
root "/Users/vedovelli/Projects/cbg/public";
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /Users/vedovelli/Projects/logs/cbg.app-error.log error;
sendfile off;
client_max_body_size 100m;
location ~ \.php$ {
try_files $uri $uri/ /index.php?$args;
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_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_intercept_errors on;
fastcgi_read_timeout 300;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment