Skip to content

Instantly share code, notes, and snippets.

@diloabininyeri
Created July 12, 2018 07:30
Show Gist options
  • Save diloabininyeri/edb7a1928ddce2a088e0493f889f05d7 to your computer and use it in GitHub Desktop.
Save diloabininyeri/edb7a1928ddce2a088e0493f889f05d7 to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
root /usr/share/nginx/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name lol.com;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
@diloabininyeri
Copy link
Author

yuu should do edit php7.0-fpm version according your php version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment