Skip to content

Instantly share code, notes, and snippets.

@teafoot
Forked from arnoldfederis/example.com
Created April 4, 2021 20:11
Show Gist options
  • Save teafoot/1766876e44495ee4f9e6fc4c1b74ce50 to your computer and use it in GitHub Desktop.
Save teafoot/1766876e44495ee4f9e6fc4c1b74ce50 to your computer and use it in GitHub Desktop.
server {
listen 80;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name example.com;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment