Skip to content

Nginx Default Configs

Untouched. Ready to copy.

/etc/logrotate.d/nginx
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

NGINX - /etc/logrotate.d/nginx

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

/var/log/nginx/*.log { daily missingok rotate 14 compress delaycompress notifempty create 0640 www-dat…

18 lines • MD5: b29112f9... View →
/etc/systemd/nginx.service
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

NGINX - /etc/systemd/nginx.service

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

# Stop dance for nginx # ======================= # # ExecStop sends SIGSTOP (graceful stop) to the nginx proc…

29 lines • MD5: 7142d860... View →
/etc/nginx/win-utf
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

NGINX - /etc/nginx/win-utf

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

# This map is not a full windows-1251 <> utf8 map: it does not # contain Serbian and Macedonian letters. If y…

125 lines • MD5: 0f39cbfc... View →
/etc/nginx/uwsgi_params
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

NGINX - /etc/nginx/uwsgi_params

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

uwsgi_param QUERY_STRING $query_string; uwsgi_param REQUEST_METHOD $request_method; uwsgi_param …

17 lines • MD5: 88ac833e... View →
/etc/nginx/scgi_params
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

NGINX - /etc/nginx/scgi_params

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

scgi_param REQUEST_METHOD $request_method; scgi_param REQUEST_URI $request_uri; scgi_param QUE…

17 lines • MD5: df8c71e2... View →
/etc/nginx/proxy_params
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver)

NGINX - /etc/nginx/proxy_params

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $…

4 lines • MD5: 2612ba34... View →
/etc/nginx/nginx.conf
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

NGINX - /etc/nginx/nginx.conf

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events …

86 lines • MD5: 11c8575c... View →
/etc/nginx/mime.types
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

NGINX - /etc/nginx/mime.types

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

types { text/html html htm shtml; text/css …

89 lines • MD5: bd837e7b... View →
/etc/nginx/koi-win
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

NGINX - /etc/nginx/koi-win

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

charset_map koi8-r windows-1251 { 80 88 ; # euro 95 95 ; # bullet 9A A0 ; # &nbsp; …

103 lines • MD5: bfa0b803... View →
/etc/nginx/koi-utf
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

NGINX - /etc/nginx/koi-utf

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

# This map is not a full koi8-r <> utf8 map: it does not contain # box-drawing and some other characters. B…

109 lines • MD5: 3e338aca... View →
/etc/nginx/fastcgi_params
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

NGINX - /etc/nginx/fastcgi_params

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_…

25 lines • MD5: 4729c301... View →
/etc/nginx/fastcgi.conf
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

NGINX - /etc/nginx/fastcgi.conf

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param QUERY_STRING $que…

26 lines • MD5: 178a634a... View →
/etc/nginx/snippets/snakeoil.conf
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver)

NGINX - /etc/nginx/snippets/snakeoil.conf

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

# Self signed certificates generated by the ssl-cert package # Don't use them in a production server! ssl_ce…

5 lines • MD5: 0a8bff8a... View →
/etc/nginx/snippets/fastcgi-php.conf
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver)

NGINX - /etc/nginx/snippets/fastcgi-php.conf

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

# regex to split $uri to $fastcgi_script_name and $fastcgi_path fastcgi_split_path_info ^(.+\.php)(/.+)$; # …

13 lines • MD5: 678c2236... View →
/etc/nginx/sites-available/default
NGINX Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver)

NGINX - /etc/nginx/sites-available/default

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration …

91 lines • MD5: 9b030eca... View →
/etc/nginx/uwsgi_params.default
NGINX Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

NGINX - /etc/nginx/uwsgi_params.default

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

uwsgi_param QUERY_STRING $query_string; uwsgi_param REQUEST_METHOD $request_method; uwsgi_param …

17 lines • MD5: 88ac833e... View →
/etc/nginx/scgi_params.default
NGINX Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

NGINX - /etc/nginx/scgi_params.default

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

scgi_param REQUEST_METHOD $request_method; scgi_param REQUEST_URI $request_uri; scgi_param QUE…

17 lines • MD5: df8c71e2... View →
/etc/nginx/nginx.conf.default
NGINX Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

NGINX - /etc/nginx/nginx.conf.default

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_…

117 lines • MD5: 3a0b1f2d... View →
/etc/nginx/mime.types.default
NGINX Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

NGINX - /etc/nginx/mime.types.default

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

types { text/html html htm shtml; text/css …

95 lines • MD5: 94facb5d... View →
/etc/nginx/fastcgi_params.default
NGINX Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

NGINX - /etc/nginx/fastcgi_params.default

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_…

25 lines • MD5: 4729c301... View →

Keep exploring

Browse by application or distro when you want a wider view.