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?