Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Nginx config - PHP 7.2 + certbot compatible
server {
listen 80;
root /var/www;
index index.php;
# Do nice rewrite stuff in here
location / {
#try_files $uri $uri/ /index.php?$args;
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