Skip to content

Instantly share code, notes, and snippets.

@basith374
Created August 21, 2020 14:48
Show Gist options
  • Save basith374/ec69097bbf2eacb4bf89cb06e2adcc6a to your computer and use it in GitHub Desktop.
Save basith374/ec69097bbf2eacb4bf89cb06e2adcc6a to your computer and use it in GitHub Desktop.
nginx conf
server {
listen 80;
listen [::]:80;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name example.com;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment