Last active
July 10, 2023 16:24
-
-
Save GiovanniK/11194798 to your computer and use it in GitHub Desktop.
Nginx config - PHP 7.2 + certbot compatible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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