default.conf 599 B

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