Skip to content

Instantly share code, notes, and snippets.

@fugaku
Created November 20, 2018 14:09
Show Gist options
  • Select an option

  • Save fugaku/8b797c9e04158624cb4d26b27bdc5429 to your computer and use it in GitHub Desktop.

Select an option

Save fugaku/8b797c9e04158624cb4d26b27bdc5429 to your computer and use it in GitHub Desktop.
Laravel nginx
server {
listen 80;
listen [::]:80;
. . .
root /var/www/laravel/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
. . .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment