Synology DS215+ PHP8.0 NGINX I want to create a new site in port 80 without Transfer-Encoding: chunked

50 Views Asked by At

I've created the site under /volume1/web/MyWeb and created a custom Nginx configuration under /etc/nginx/conf.d, but I cannot configure it to prevent "Transfer-Encoding: chunked" header in the response.

I must configure it in this way, because I'm migrating this microsite from another Zyxel NAS with and old PHP (5.x), and it will call from a microcontroller with HTTP/1.1 and expects a non-chunked response. Unfortunately I cannot change the microcontroller's code.

I tested, if I call this site with HTTP/1.0, the response is correct, un-chunked. Also tested, if I respond with a static file (not a PHP script), that response is also un-chunked.

But if I write a PHP file with only an 'echo' in it, the response will be chunked. I've tried many PHP configs, Nginx settings, but nothing work.

Which is the correct way/configuration for this?

0

There are 0 best solutions below