When should I use this fastcgi.conf.default?
Use it to restore a missing default, confirm what shipped, or diff against your current NGINX config.
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param REQUEST_SCHEME $scheme; fastcgi_param HTTPS $https if_not_empty; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; # PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200;
curl https://exampleconfig.com/api/v1/config/original/178a634a52a0777a4cf6f3a394fd2b53?hint=fastcgi.conf.default
wget -O fastcgi.conf.default https://exampleconfig.com/api/v1/config/original/178a634a52a0777a4cf6f3a394fd2b53?hint=fastcgi.conf.default
<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/178a634a52a0777a4cf6f3a394fd2b53?hint=fastcgi.conf.default' /><config><app>NGINX</app><os>Red Hat Enterprise Linux 9 (Plow)</os><location>/etc/nginx/fastcgi.conf.default</location><lines>26</lines><md5>178a634a52a0777a4cf6f3a394fd2b53</md5><sha256>b2c3d480a58f61f3a7dc61850b461e892e36f236317765a4f2f6d558c928fa57</sha256></config></prompt>
Paste into Claude, ChatGPT, or any AI assistant.
sudo apk add nginx
sudo apt update && sudo apt install nginx
sudo yum install nginx
sudo apt update && sudo apt install nginx
When should I use this fastcgi.conf.default?
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/fastcgi.conf.default, replace it, then reload or restart NGINX.
Is fastcgi.conf.default safe for production?
It is the vendor default for Red Hat Enterprise Linux 9 (Plow). 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 Red Hat Enterprise Linux 9 (Plow).
Can I use this for NGINX troubleshooting?
Yes. Diff it against yours to find drift, then restore only the sections you need.