Created
February 27, 2018 20:48
-
-
Save int32at/a286d8b4b86bb1a0dd18c15c09cb4406 to your computer and use it in GitHub Desktop.
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; | |
server_name example.com www.example.com; | |
root /var/www/example.com; | |
index index.php; | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
location ~ \.php$ { | |
fastcgi_pass unix:/run/php/php7.1-fpm.sock; | |
include snippets/fastcgi-php.conf; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment