Skip to content

Instantly share code, notes, and snippets.

@wilxsv
Created July 9, 2017 18:30
Show Gist options
  • Save wilxsv/50ce5badcde5badf4dc5c75831bfdb6d to your computer and use it in GitHub Desktop.
Save wilxsv/50ce5badcde5badf4dc5c75831bfdb6d to your computer and use it in GitHub Desktop.
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