NGINX /etc/nginx/uwsgi_params

Original 📋 Debian 9 (Stretch) 17 lines

Works On

Viewing:
Debian 9 (Stretch)
Same on:
Alpine Linux v3.21 CentOS Stream 9 Debian 10 (Buster) Debian 11 (Bullseye) Debian 12 (Bookworm) Debian 13 (Trixie) Red Hat Enterprise Linux 8 (Ootpa) Red Hat Enterprise Linux 9 (Plow) 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
17 lines
MD5
88ac833ee8ea60904a8b3063fde791de
SHA256
015cb581c2eb84b1a1ac9b575521d5881f791f632bfa62f34b26ba97d70c0d4f
/etc/nginx/uwsgi_params
uwsgi_param  QUERY_STRING       $query_string;
uwsgi_param  REQUEST_METHOD     $request_method;
uwsgi_param  CONTENT_TYPE       $content_type;
uwsgi_param  CONTENT_LENGTH     $content_length;

uwsgi_param  REQUEST_URI        $request_uri;
uwsgi_param  PATH_INFO          $document_uri;
uwsgi_param  DOCUMENT_ROOT      $document_root;
uwsgi_param  SERVER_PROTOCOL    $server_protocol;
uwsgi_param  REQUEST_SCHEME     $scheme;
uwsgi_param  HTTPS              $https if_not_empty;

uwsgi_param  REMOTE_ADDR        $remote_addr;
uwsgi_param  REMOTE_PORT        $remote_port;
uwsgi_param  SERVER_PORT        $server_port;
uwsgi_param  SERVER_NAME        $server_name;

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/88ac833ee8ea60904a8b3063fde791de?hint=uwsgi_params
wget:
wget -O uwsgi_params https://exampleconfig.com/api/v1/config/original/88ac833ee8ea60904a8b3063fde791de?hint=uwsgi_params

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/88ac833ee8ea60904a8b3063fde791de?hint=uwsgi_params' /><config><app>NGINX</app><os>Debian 9 (Stretch)</os><location>/etc/nginx/uwsgi_params</location><lines>17</lines><md5>88ac833ee8ea60904a8b3063fde791de</md5><sha256>015cb581c2eb84b1a1ac9b575521d5881f791f632bfa62f34b26ba97d70c0d4f</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/uwsgi_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 uwsgi_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/uwsgi_params, replace it, then reload or restart NGINX.

Is uwsgi_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.