default.conf 656 B

12345678910111213141516171819202122232425262728
  1. server {
  2. listen 80 default_server;
  3. root /var/www/html;
  4. index index.html index.php;
  5. charset utf-8;
  6. location = /favicon.ico { access_log off; log_not_found off; }
  7. location = /robots.txt { access_log off; log_not_found off; }
  8. access_log off;
  9. sendfile off;
  10. client_max_body_size 100m;
  11. location / {
  12. try_files $uri /index.php$is_args$args;
  13. }
  14. location ~ ^/index\.php(/|$) {
  15. fastcgi_pass php:9000;
  16. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  17. include fastcgi_params;
  18. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19. fastcgi_param HTTPS off;
  20. }
  21. }