Skip to content

Instantly share code, notes, and snippets.

@GiovanniK
Last active July 10, 2023 16:24
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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