Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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