Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2018 02:42
Show Gist options
  • Save anonymous/c44ee73a167fa97ea8225dfffa056ca1 to your computer and use it in GitHub Desktop.
Save anonymous/c44ee73a167fa97ea8225dfffa056ca1 to your computer and use it in GitHub Desktop.
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
try_files $uri $uri/ =404;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
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