Skip to content

Instantly share code, notes, and snippets.

@wicochandra
Created June 9, 2015 07:37
Show Gist options
  • Save wicochandra/2ce0c3e654b6e49b890f to your computer and use it in GitHub Desktop.
Save wicochandra/2ce0c3e654b6e49b890f to your computer and use it in GitHub Desktop.
My default server configuration for development.
server {
listen 80;
listen 8888;
server_name localhost;
index index.php index.html index.htm;
root /path/to/root;
autoindex on;
client_max_body_size 1G;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_read_timeout 600;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param PHP_VALUE "upload_max_filesize=1G
post_max_size=1G";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment