Created
July 9, 2017 18:30
-
-
Save wilxsv/50ce5badcde5badf4dc5c75831bfdb6d 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; | |
listen [::]:80; | |
client_max_body_size 20m; | |
server_name DOMINIO.ORG; | |
root /var/www/..../; | |
index index.php index.html; | |
location / { | |
try_files $uri $uri/ =404; | |
client_max_body_size 20m; | |
} | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment