Get the default configuration file 01-cgi.conf for Apache, optimized for Red Hat Enterprise Linux 8 (Ootpa). This example configuration ensures optimal compatibility and performance for Apache, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/httpd/conf.modules.d/01-cgi.conf.
For more configurations and setup guides, visit our related files section to further customize your system.
# 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_worker_module>
LoadModule cgid_module modules/mod_cgid.so
</IfModule>
<IfModule mpm_event_module>
LoadModule cgid_module modules/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module modules/mod_cgi.so
</IfModule>
Download the raw file with wget or curl
wget -O 01-cgi.conf.example https://exampleconfig.com/static/raw/apache/rhel8/etc/httpd/conf.modules.d/01-cgi.conf
curl https://exampleconfig.com/static/raw/apache/rhel8/etc/httpd/conf.modules.d/01-cgi.conf > 01-cgi.conf.example
Other config files you might find useful