nginx.conf 479 B

123456789101112131415161718192021222324252627
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. root /var/www/html/public;
  5. index index.php;
  6. charset utf-8;
  7. location / {
  8. try_files $uri $uri/ /index.php?$query_string;
  9. }
  10. location = /index.php {
  11. include fastcgi_params;
  12. fastcgi_pass php:9000;
  13. fastcgi_param SCRIPT_FILENAME $document_root/index.php;
  14. }
  15. location ~ \.php$ {
  16. return 404;
  17. }
  18. location ~ /\.(?!well-known).* {
  19. deny all;
  20. }
  21. }