NGINX /etc/nginx/scgi_params.default

Original ๐Ÿ“‹ Red Hat Enterprise Linux 9 (Plow) 17 lines

Works On

Viewing:
Red Hat Enterprise Linux 9 (Plow)
Same on:
CentOS Stream 9 Red Hat Enterprise Linux 8 (Ootpa)
Other versions:

Details

Size
17 lines
MD5
df8c71e25e0356ffc539742f08fddfff
SHA256
f27b2027c571ccafcfb0fbb3f54d7aeee11a984e3a0f5a1fdf14629030fc9011

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/df8c71e25e0356ffc539742f08fddfff?hint=scgi_params.default
wget:
wget -O scgi_params.default https://exampleconfig.com/api/v1/config/original/df8c71e25e0356ffc539742f08fddfff?hint=scgi_params.default

For AI Agents

You are a DevOps agent. Fetch the default NGINX config for Red Hat Enterprise Linux 9 (Plow) from https://exampleconfig.com/api/v1/config/original/df8c71e25e0356ffc539742f08fddfff?hint=scgi_params.default. Compare with my current /etc/nginx/scgi_params.default and summarize differences and safe changes.

Copy this prompt into Claude, ChatGPT, or other AI assistants.

/etc/nginx/scgi_params.default
scgi_param  REQUEST_METHOD     $request_method;
scgi_param  REQUEST_URI        $request_uri;
scgi_param  QUERY_STRING       $query_string;
scgi_param  CONTENT_TYPE       $content_type;

scgi_param  DOCUMENT_URI       $document_uri;
scgi_param  DOCUMENT_ROOT      $document_root;
scgi_param  SCGI               1;
scgi_param  SERVER_PROTOCOL    $server_protocol;
scgi_param  REQUEST_SCHEME     $scheme;
scgi_param  HTTPS              $https if_not_empty;

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

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/scgi_params.default
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 scgi_params.default?

Restore it. Compare it. Start clean.

How do I restore NGINX defaults?

Download, replace, restart.

Is scgi_params.default safe for production?

Yes. This is exactly what shipped. Safe starting point.

How does this differ from other OS versions?

Defaults change. This one is specific to Red Hat Enterprise Linux 9 (Plow).

Can I use this for NGINX troubleshooting?

Absolutely. Diff this against yours to spot the problem.