﻿# Web Servers

_Rewritten November 2025_

Although virtually all modern web servers support CGI, and most support FastCGI as well, the most popular servers are probably Apache, IIS (Windows only) and NginX.  In all cases, it will probably be necessary to adjust the web server configuration options to deal with CGI and or FastCGI as required for your environment.  You'll probably have to consult the web server documentation and/or the Internet for help on that, but for what it's worth, here is an example of changes that might be made to the Apache configuration under Windows (in http.conf) :

For CGI:

LoadModule cgi\_module modules/mod\_cgi.so

...

<IfModule alias\_module>

    ScriptAlias /cgi-bin/ "c:/Apache24/cgi-bin/"

</IfModule>

...

<Directory "c:/Apache24/cgi-bin">

    SetHandler cgi-script 

    AllowOverride None

    Options +ExecCGI

    Require all granted

</Directory>



For FastCGI:

LoadModule fcgid\_module modules/mod\_fcgid.so

...

<IfModule alias\_module>

    ScriptAlias /fcgi-bin/ "c:/Apache24/fcgi-bin/"

</IfModule>

...

<IfModule fcgid\_module>

    FcgidMaxRequestsPerProcess 50000

    FcgidMinProcessesPerClass 1

    FcgidMaxProcesses 2

    FcgidBusyTimeout 60

    FcgidBusyScanInterval 5

    FcgidIOTimeout 60

    FcgidIdleTimeout 0

    FcgidIdleScanInterval 100

    FcgidProcessLifeTime 0

<Directory "c:/Apache24/fcgi-bin">

    SetHandler fcgid-script 

    AllowOverride None

    Options +ExecCGI

    Require all granted

</Directory>

</IfModule>