Advertisement
Guest User

Untitled

a guest
Mar 18th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.78 KB | None | 0 0
  1. server {
  2.  
  3.     listen 80 default_server;
  4.     listen [::]:80 default_server ipv6only=on;
  5.  
  6.     server_name localhost;
  7.     root /var/www/public;
  8.     index index.php index.html;
  9.  
  10.     location / {
  11.          try_files $uri $uri/ /index.php$is_args$args;
  12.     }
  13.  
  14.     location ~ \.php$ {
  15.         try_files $uri /index.php =404;
  16.         fastcgi_pass php-upstream;
  17.         fastcgi_index index.php;
  18.         fastcgi_buffers 16 16k;
  19.         fastcgi_buffer_size 32k;
  20.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  21.         #fixes timeouts
  22.         fastcgi_read_timeout 600;
  23.         include fastcgi_params;
  24.     }
  25.  
  26.     location ~ /\.ht {
  27.         deny all;
  28.     }
  29.  
  30.     error_log /var/log/nginx/laravel_error.log;
  31.     access_log /var/log/nginx/laravel_access.log;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement