Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The following page has been changed by MarkWatts:
http://wiki.apache.org/httpd/ScratchPad/EnablingCGI

------------------------------------------------------------------------------
  
  Here are three different ways to allow CGI script execution.
  
+ This is the preferred way of enabling CGI scripts.
+ It tells Apache to run any file ending in .cgi as a CGI script through 
mod_cgi.
+ 
- {{{
-       Alias /cgi-bin /var/www/cgi-bin/
-       <Location /cgi-bin>
-           SetHandler cgi-script
-           Options +ExecCGI
-           Order Allow,Deny
-           Allow from all
-       </Location>
- }}}
  {{{
        Alias /cgi-bin /var/www/cgi-bin/
        <Directory /var/www/cgi-bin>
-           AddType application/x-httpd-cgi .cgi
+           AddHandler cgi-script .cgi
            Options +ExecCGI
            Order Allow,Deny
            Allow from all
        </Directory>
  }}}
+ 
+ This alternative will make ''any'' file in the /cgi-bin directory be executed 
as CGI through mod_cgi.
+ 
  {{{
        ScriptAlias /cgi-bin /var/www/cgi-bin/
        <Directory /var/www/cgi-bin >

Reply via email to