Mac OS X Server v10.6: Enabling CGI support
Products Affected
Mac OS X Server 10.6
Symptoms
Files in the CGI-Executables directory are not executed by URLs that contain "/cgi-bin/", such as http://localhost/cgi-bin/printenv .
Resolution
Update to Mac OS X Server v10.6.3 or later.
Note: With Mac OS X Server v10.6, 10.6.1, or 10.6.2 only, to allow the files to be run from the CGI-Executables directory, execute the following command in Terminal (on a single line):
sudo serveradmin settings web:IfModule:_array_id:mod_alias.c:ScriptAlias:_array_index:0 = "/cgi-bin/ /Library/WebServer/CGI-Executables/"
Additional Information
When you enable CGI Execution for a website via Server Admin, files with the extension ".cgi" can be executed within the site's document directory. Executables in CGI-Executables are not affected.
Twitter
Facebook