NGINX /etc/nginx/proxy_params

Original 📋 Debian 9 (Stretch) 4 lines

Works On

Viewing:
Debian 9 (Stretch)
Same on:
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)
Other versions:

Details

Size
4 lines
MD5
2612ba3438c3b7855ea7779a879e6aef
SHA256
7cff43a9768c1112bb074e9f26aaa1173da6ef85a7a20838242e846835c8eeb2
/etc/nginx/proxy_params
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/2612ba3438c3b7855ea7779a879e6aef?hint=proxy_params
wget:
wget -O proxy_params https://exampleconfig.com/api/v1/config/original/2612ba3438c3b7855ea7779a879e6aef?hint=proxy_params

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/2612ba3438c3b7855ea7779a879e6aef?hint=proxy_params' /><config><app>NGINX</app><os>Debian 9 (Stretch)</os><location>/etc/nginx/proxy_params</location><lines>4</lines><md5>2612ba3438c3b7855ea7779a879e6aef</md5><sha256>7cff43a9768c1112bb074e9f26aaa1173da6ef85a7a20838242e846835c8eeb2</sha256></config></prompt>

Paste into Claude, ChatGPT, or any AI assistant.

Install NGINX

Alpine Linux

sudo apk add nginx

Debian

sudo apt update && sudo apt install nginx

Red Hat Enterprise Linux

sudo yum install nginx

Ubuntu

sudo apt update && sudo apt install nginx

File Location

File Path
/etc/nginx/proxy_params
Directory
/etc/nginx/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this proxy_params?

Use it to restore a missing default, confirm what shipped, or diff against your current NGINX config.

How do I restore NGINX defaults?

Download the file, back up the current one in /etc/nginx/proxy_params, replace it, then reload or restart NGINX.

Is proxy_params safe for production?

It is the vendor default for Debian 9 (Stretch). Treat it as a baseline and review security and performance settings before production use.

How does this differ from other OS versions?

Defaults vary by distro and version. This copy matches Debian 9 (Stretch).

Can I use this for NGINX troubleshooting?

Yes. Diff it against yours to find drift, then restore only the sections you need.