Category «Nginx»

Solving “upstream sent too big header while reading response header from upstream” on Nginx

If you’ve used Nginx, you may have come across this error. 2019/04/12 06:43:24 [error] 11365#0: *257 upstream sent too big header while reading response header from ups tream, client: 127.0.0.1, server: hiroki-example.com, request: “POST /payment HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “hiroki-example.com”, referrer: “http://hiroki-example.com/payment” I’ve seen this many times, but haven’t really tried to understand it deeply. In …

How I set up Nginx on CentOS 7 with PHP 7.2

I’ve just finished setting up Nginx on my brand new PC running on CentOS 7 with PHP7.2. I used to use Ubuntu 16 with PHP7.0 and was quite familiar with the combo. I thought that setting up Nginx on CentOS wouldn’t be that different from doing so on Ubuntu, which wasn’t really true. It took …