Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. server {
  2.  
  3. listen 80;
  4.  
  5. server_name laravel6.test;
  6. root /var/www/laravel6/public;
  7. index index.php index.html index.htm;
  8.  
  9. location / {
  10. try_files $uri $uri/ /index.php$is_args$args;
  11. }
  12.  
  13. location ~ \.php$ {
  14. try_files $uri /index.php =404;
  15. fastcgi_pass php-upstream;
  16. fastcgi_index index.php;
  17. fastcgi_buffers 16 16k;
  18. fastcgi_buffer_size 32k;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. #fixes timeouts
  21. fastcgi_read_timeout 600;
  22. include fastcgi_params;
  23. }
  24.  
  25. location ~ /\.ht {
  26. deny all;
  27. }
  28.  
  29. location /.well-known/acme-challenge/ {
  30. root /var/www/letsencrypt/;
  31. log_not_found off;
  32. }
  33.  
  34. error_log /var/log/nginx/mybot_error.log debug;
  35. access_log /var/log/nginx/mybot_access.log;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement