Skip to content

Instantly share code, notes, and snippets.

@heisenberg-lgbt-ulanbator
Last active October 25, 2019 13:14
Show Gist options
  • Save heisenberg-lgbt-ulanbator/f64929d160814eb81edc8ed5f8c968b3 to your computer and use it in GitHub Desktop.
Save heisenberg-lgbt-ulanbator/f64929d160814eb81edc8ed5f8c968b3 to your computer and use it in GitHub Desktop.
template nginx php7-fpm config
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