Skip to content

Instantly share code, notes, and snippets.

@horlathunbhosun
Forked from ichtrojan/Laravel_nginx
Created July 7, 2020 08:13
Show Gist options
  • Save horlathunbhosun/47cd5ac2260a9fd02afe7f1da0f90306 to your computer and use it in GitHub Desktop.
Save horlathunbhosun/47cd5ac2260a9fd02afe7f1da0f90306 to your computer and use it in GitHub Desktop.
server {
root /var/www/app/public;
index index.php;
server_name domain;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment