app.conf 636 B

123456789101112131415161718192021
  1. server {
  2. index index.php index.html;
  3. server_name _;
  4. error_log /var/log/nginx/error.log;
  5. access_log /var/log/nginx/access.log;
  6. root /var/www/html;
  7. location ~ \.php$ {
  8. try_files $uri =404;
  9. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  10. fastcgi_pass php-fpm: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. fastcgi_param PHP_VALUE "xdebug.remote_autostart=1
  16. xdebug.remote_enable=1
  17. xdebug.remote_host=localhost";
  18. }
  19. }