Skip to content

Instantly share code, notes, and snippets.

@GiovanniK
Last active July 10, 2023 16:24
Show Gist options
  • Save GiovanniK/11194798 to your computer and use it in GitHub Desktop.
Save GiovanniK/11194798 to your computer and use it in GitHub Desktop.
Nginx config - PHP 7.2 + certbot compatible
server {
listen 80;
root /var/www;
index index.php;
server_name domain.dev;
# Do nice rewrite stuff in here
location / {
#try_files $uri $uri/ /index.php?$args;
}
#
# PHP
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment