Last active
October 25, 2019 13:14
-
-
Save heisenberg-lgbt-ulanbator/f64929d160814eb81edc8ed5f8c968b3 to your computer and use it in GitHub Desktop.
template nginx php7-fpm config
This file contains hidden or 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; | |
listen [::]:80; | |
root /home/mikhail/projects/test.local; | |
index index.html index.htm index.php; | |
# Make site accessible from http://localhost/ | |
server_name test.local; | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
# With php7.0-cgi alone: | |
#fastcgi_pass 127.0.0.1:9000; | |
# With php7.0-fpm: | |
fastcgi_pass unix:/run/php/php7.0-fpm.sock; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment