PHP-FPM and Nginx: 502 Bad Gateway

后端 未结 15 1930
闹比i
闹比i 2021-01-29 18:35

Configuration

  • Ubuntu Server 11.10 64 bit
  • Amazon AWS, Ec2, hosted on the cloud
  • t1.micro instance

Before I write an

15条回答
  •  死守一世寂寞
    2021-01-29 19:03

    Before messing with Nginx config, try to disable ChromePHP first.

    1 - Open app/config/config_dev.yml

    2 - Comment these lines:

    chromephp:
        type:   chromephp
        level:  info
    

    ChromePHP pack the debug info json-encoded in the X-ChromePhp-Data header, which is too big for the default config of nginx with fastcgi.

提交回复
热议问题