Created
September 30, 2015 23:08
-
-
Save chalasr/0dc8596742258d38200e to your computer and use it in GitHub Desktop.
This file contains 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; | |
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