Skip to content

Instantly share code, notes, and snippets.

@deyvin
Created February 27, 2020 13:57
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 deyvin/ca0ded0a5eb2103ef189c7509d168cbf to your computer and use it in GitHub Desktop.
Save deyvin/ca0ded0a5eb2103ef189c7509d168cbf to your computer and use it in GitHub Desktop.
server {
root /var/www/promo;
index index.php index.html index.htm;
server_name example.com.br;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
listen 80;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment