Apache HTTP Server /etc/httpd/conf.modules.d/01-cgi.conf

Original 📋 Red Hat Enterprise Linux 9 (Plow) 11 lines

Works On

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

Details

Size
11 lines
MD5
a9f3a4439fcefa4ebdc3b2739d266a95
SHA256
ea2c311932bdc018772e27e58b83d883955d4764868bcc19dd4c4d5febac658f
/etc/httpd/conf.modules.d/01-cgi.conf
# This configuration file loads a CGI module appropriate to the MPM
# which has been configured in 00-mpm.conf.  mod_cgid should be used
# with a threaded MPM; mod_cgi with the prefork MPM.

<IfModule !mpm_prefork_module>
   LoadModule cgid_module modules/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
   LoadModule cgi_module modules/mod_cgi.so
</IfModule>

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/a9f3a4439fcefa4ebdc3b2739d266a95?hint=01-cgi.conf
wget:
wget -O 01-cgi.conf https://exampleconfig.com/api/v1/config/original/a9f3a4439fcefa4ebdc3b2739d266a95?hint=01-cgi.conf

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/a9f3a4439fcefa4ebdc3b2739d266a95?hint=01-cgi.conf' /><config><app>Apache HTTP Server</app><os>Red Hat Enterprise Linux 9 (Plow)</os><location>/etc/httpd/conf.modules.d/01-cgi.conf</location><lines>11</lines><md5>a9f3a4439fcefa4ebdc3b2739d266a95</md5><sha256>ea2c311932bdc018772e27e58b83d883955d4764868bcc19dd4c4d5febac658f</sha256></config></prompt>

Paste into Claude, ChatGPT, or any AI assistant.

Install Apache HTTP Server

Alpine Linux

sudo apk add apache2

Debian

sudo apt update && sudo apt install apache2

Red Hat Enterprise Linux

sudo yum install httpd

Ubuntu

sudo apt update && sudo apt install apache2

File Location

File Path
/etc/httpd/conf.modules.d/01-cgi.conf
Directory
/etc/httpd/conf.modules.d/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this 01-cgi.conf?

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

How do I restore Apache HTTP Server defaults?

Download the file, back up the current one in /etc/httpd/conf.modules.d/01-cgi.conf, replace it, then reload or restart Apache HTTP Server.

Is 01-cgi.conf 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 Apache HTTP Server troubleshooting?

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