Skip to content

Instantly share code, notes, and snippets.

@chalasr
Created September 30, 2015 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalasr/0dc8596742258d38200e to your computer and use it in GitHub Desktop.
Save chalasr/0dc8596742258d38200e to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name 192.168.1.16;
root /var/www/nginx;
index index.php index.html index.htm;
client_max_body_size 1000M; # set maximum upload size
# default try order
location / {
try_files $uri $uri/ @webdav;
}
# enable php
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment