search

Home  >  Q&A  >  body text

Why does the PHP output parsed by fastcgi in nginx and apache output length information in the header and tail?

Why does the header and tail output length information when php parsed by fastcgi in nginx and apache is output? In the picture below, the 30e at the beginning and the 0 at the end are both added, and static pages will not be added

PHP中文网PHP中文网2750 days ago553

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 17:06:40

    Solved :)
    Nothing to do with fastcgi
    The trouble caused by chunked

    Add the following configuration to the nginx configuration file
    chunked_transfer_encoding off;

    apache unconditionally to be tested

    reply
    0
  • Cancelreply