DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34622>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34622


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From [EMAIL PROTECTED]  2005-12-11 00:35 -------
This is because you let mod_mime_magic detect the mime type of the cgi script.
As this script is not identified by the magic table, mod_mime_magic falls back
to some rather simple keyword matching method (ascmagic in mod_mime_type). One
of these rules says: if the word "the" can be found in the beginning of the
files (first 1024 bytes), then this an English text and its mime type is
text/plain. Another rule says: If I find the string "<!--" then it is html and
its mime type is html/text. As the first rule that matches decides, the mime
type is text/html for the script with "tee" (<!-- is found) and text/plain for
the script with the word "the" ("the" is found).
But the script needs to be of content-type text/html for XBitHack to work. And
this must be the content-type that must be detected by httpd BEFORE the script
is run. So that you set content-type to text-html in the script does not work.
In order to solve this problem add the following directive to your 
configuration:

AddType text/html .cgi

which sets the mime type for all .cgi files to text/html.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to