default.conf 519 B

1234567891011121314151617181920
  1. server {
  2. listen 80;
  3. index index.php index.html;
  4. server_name _;
  5. root /var/www/html/public;
  6. location / {
  7. try_files $uri $uri/ /index.php?$query_string;
  8. }
  9. location ~ \.php$ {
  10. try_files $uri =404;
  11. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  12. fastcgi_pass php:9000;
  13. fastcgi_index index.php;
  14. include fastcgi_params;
  15. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  16. fastcgi_param PATH_INFO $fastcgi_path_info;
  17. }
  18. }