maphew

Shorten cgi url

2021-Jun-11

AddHandler cgi-script .cgi

Once that has been put into your httpd.conf file, any file containing the .cgi extension will be treated as a CGI program.

From <https://httpd.apache.org/docs/2.4/mod/mod_mime.html#addhandler>

How do I convince apache 2.4 to treat one exactly one file with no extension as a CGI file?

<FilesMatch filename$>
    SetHandler cgi-script
</FilesMatch>

From <https://serverfault.com/questions/500749/running-a-file-without-extension-as-cgi-script-outside-cgi-bin>