Skip to main content

NGINX Timeout Directives: Complete Configuration Guide


by Danila Vershinin, January 26, 2026

Master all NGINX timeout directives including proxy_read_timeout, client_body_timeout, keepalive_timeout, and send_timeout. Learn when to use each, production-ready values, and how to diagnose timeout issues.

Read More...

NGINX 502 Bad Gateway: Every Cause and Fix (Complete Guide)


by Danila Vershinin, January 24, 2026

Learn how to fix NGINX 502 Bad Gateway errors. This comprehensive guide covers every cause including PHP-FPM issues, socket permissions, buffer problems, and more with tested solutions.

Read More...

504 Gateway Timeout NGINX: How to Fix It


by Danila Vershinin, January 22, 2026

Stop copy-pasting timeout fixes. Learn which NGINX directive actually causes 504 errors and how to fix it properly—whether you’re proxying to Varnish, Node.js, PHP-FPM, or any HTTP backend.

Read More...

How to log and fix slow PHP requests


by Danila Vershinin, June 5, 2020

How to troubleshot slow PHP requests using PHP-FPM slow log facility. Common reasons for a slow PHP request and ways to fix it

Read More...

Quick fix for installing python2-certbot-dns-route53 (python2-boto3) in CentOS 7


by Danila Vershinin, January 7, 2019

Just a quick fix for installing python2-certbot-dns-route53 in CentOS 7

Read More...

[Fix] ImportError: ‘pyOpenSSL’ module missing required functionality. Try upgrading to v0.14 or newer.


by Danila Vershinin, March 23, 2018

Fix for running Certbot error: ‘pyOpenSSL’ module missing required functionality. Try upgrading to v0.14 or newer.

Read More...

Debugging PHP behind Varnish


by Danila Vershinin, January 13, 2018

Some tips on debugging PHP on production system with Varnish server

Read More...

Fx for “The requested URL returned error” and “401 Unauthorized while accessing” with git on CentOS 6


by Danila Vershinin, November 2, 2017

Quick fix for git error on CentOS 6 systems

Read More...

Varnish 4 and 5. Log slow backend requests


by Danila Vershinin, March 21, 2017

Log slow backend requests using Varnish utility varnishncsa

Read More...

Email files from server (shell script)


by Danila Vershinin, March 16, 2017

Send any file or directory form your server gzipped via email! Handy shell script for sharing files from server using email with attachment.

Read More...