default.conf 526 B

12345678910111213141516171819202122
  1. server {
  2. listen 80;
  3. listen 443 http2;
  4. server_name localhost;
  5. root /var/www/html/web;
  6. index index.php;
  7. location / {
  8. try_files $uri $uri/ /index.php?$query_string;
  9. }
  10. location ~ \.php$ {
  11. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  12. fastcgi_pass php-fpm: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. }