Skip to content

Instantly share code, notes, and snippets.

@jewishmoses
Last active July 3, 2020 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jewishmoses/e8491aa36d685fb4fabd0ab330656093 to your computer and use it in GitHub Desktop.
Save jewishmoses/e8491aa36d685fb4fabd0ab330656093 to your computer and use it in GitHub Desktop.
nginx laravel example block
server {
listen 80;
root /var/www/example.com/website/public;
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;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment