Created
June 9, 2015 07:37
-
-
Save wicochandra/2ce0c3e654b6e49b890f to your computer and use it in GitHub Desktop.
My default server configuration for development.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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