Marc Slemko wrote:
> 
> Synopsis: Wrong type given to file with "two extensions"
> 
> State-Changed-From-To: analyzed-closed
> State-Changed-By: marc
> State-Changed-When: Sun Jul  6 15:36:20 PDT 1997
> State-Changed-Why:
> Looking at this further, this is not an incorrect behavior,
> just unexpected.  The code is explicitly designed to allow
> that, to allow users to setup things such as foo.ssi.html.
> 
> Changing the AddHandler to an AddType would eliminate the
> problem in this case, as would changing it to:
> 
> AddHandler cgi-script .cgi$
> 

In this case, then the default configuration of the web server is, I think,
erroneous.  Below is a patch to fix the default configuration for CGI
scripts, but I think that some consideration should also be given to the use
of AddHandler vs AddType throughout the default configuration file...

    Stig
    

*** /u3/redhat/BUILD/apache_1.2.0/conf/srm.conf Thu Jul 10 14:37:44 1997
--- -   Thu Jul 10 14:46:03 1997
***************
*** 155,161 ****
  # Format: AddHandler action-name ext1
  
  # To use CGI scripts:
! AddHandler cgi-script .cgi
  
  # To use server-parsed HTML files
  AddType text/html .shtml
--- 155,161 ----
  # Format: AddHandler action-name ext1
  
  # To use CGI scripts:
! AddType cgi-script .cgi
  
  # To use server-parsed HTML files
  AddType text/html .shtml

Reply via email to