The following reply was made to PR config/716; it has been noted by GNATS.
From: Dean Gaudet <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: Subject: Re: config/716: Wrong type given to file with "two extensions"
(fwd)
Date: Mon, 23 Feb 1998 03:06:39 -0800 (PST)
An old one which wasn't forwarded to apbugs. Marc, your .cgi$ suggestion
is bogus. That disables CGIs unless they're named .cgi$. This is still a
somewhat open problem, and related to the more recent PR asking for
"SetHandler none".
Dean
---------- Forwarded message ----------
Date: Thu, 10 Jul 1997 14:48:16 -0700
From: Stig <[EMAIL PROTECTED]>
To: Marc Slemko <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: config/716: Wrong type given to file with "two extensions"
X-Face: 7!m2V|20yUv)(<S~zilsr%pOn\}dFNL%!\f]{ECx}0jkg[#rA`HVlT1&iG<Y;<h&PT7~d(=
66$ql'R5[g&!!5O3oE]?EBHG_Sw|Z}eoq}I(W*6\'(yAySc,-K4!`5=v*}:QOn/8F$K~]{$~*oy&{e
OEaQbA<(~+F6C?iQl]+l(p3#1G"td6&D\he3JUSIpw#Xq^Vcn]?>#F=t:=2WXX_
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