Skip to content

Techeons

Imagine | Explore | Innovate

Menu
  • Home
Menu

Nginx: How to increase timeout for Nginx

Posted on November 13, 2025

Nginx timeouts are useful for controlling how long a connection stays open.

Add the following to your location block:

location /<path> {
    proxy_read_timeout 1800;
    proxy_connect_timeout 1800;
    proxy_send_timeout 1800;
    send_timeout 1800;
    fastcgi_read_timeout 1800;
}

Timeout value is in seconds i.e. 1800 seconds.

Verify the Nginx config syntax is correct using:

nginx -t -c nginx.conf

Reload Nginx:

nginx -s reload

Share on Social Media
x facebook pinterest linkedin tumblr reddit emailwhatsapptelegrammastodon

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • Nginx: How to increase timeout for Nginx
  • Cheat Sheet: Essential Git Commands
  • Setting a default shell in Linux
  • Setting up Composer on Linux
  • Switch easily between Python versions on a Mac using pyenv

Tags

ai alerting aws b2 backblaze certificate cheatsheet cloud commands data-science datalake devops dns docker dremio git gitlab infra jenkins kubernetes linux metabase minikube minio monitoring mount mysql nginx nodejs notebooks openssh php python scala secrets spark ssh ssl ubuntu ufw usb web dev tools windows xampp zeppelin

©2026 Techeons | Design: Newspaperly WordPress Theme