default.conf 625 B

123456789101112131415161718192021222324252627282930
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server ipv6only=on;
  4. server_name laradock;
  5. root /var/www/public;
  6. index index.php index.html index.htm;
  7. location / {
  8. try_files $uri $uri/ /index.php$is_args$args;
  9. }
  10. location ~ \.php$ {
  11. try_files $uri /index.php =404;
  12. fastcgi_pass php-upstream;
  13. fastcgi_index index.php;
  14. fastcgi_buffers 16 16k;
  15. fastcgi_buffer_size 32k;
  16. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  17. include fastcgi_params;
  18. }
  19. location ~ /\.ht {
  20. deny all;
  21. }
  22. }