| nginx with tor/i2p addresses||Retro Guy|
nginx with tor/i2p addressesFrom: Retro Guy@rslight.i2p
Thu, 26 Dec 2019 02:28 UTC
Dropping this here if anyone might run into this.
rocksolid light 0.6.5e
I've moved two of my servers from running apache to nginx. So far so good, easy to configure and is working well, but I did run into an issue and here's the solution.
Once I had everything configured, I tried to run and got this error: nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size
The simple solution is to modify nginx.conf adding the following in http:
The suggested value of 64 may work (it didn't for me), but I have quite a few long names, so I had to use 128. This seems fine.
Also, nginx timeout waiting for php-fpm seems very short, and I was receiving a lot of 502 Bad Gateway errors. The following (also in nginx.conf:http) seem to resolve this issue (also increases buffer size):
fastcgi_buffers 128 2048k;
proxy_buffers 4 256k;
I'm sure cleaning up my code wouldn't hurt, but for now this is working well.
Posted on Rocksolid Light