Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 69664 invoked from network); 2 Jan 2007 01:51:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2007 01:51:32 -0000 Received: (qmail 91370 invoked by uid 500); 2 Jan 2007 01:51:27 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 91353 invoked by uid 500); 2 Jan 2007 01:51:27 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 91342 invoked by uid 99); 2 Jan 2007 01:51:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jan 2007 17:51:27 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [207.106.84.159] (HELO atlas.jtan.com) (207.106.84.159) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jan 2007 17:51:15 -0800 X-JTAN-Outgoing-From: sctemme@apache.org X-JTAN-Outgoing-To: X-JTAN-Received: c-24-5-108-151.hsd1.ca.comcast.net [24.5.108.151] X-JTAN-Recipient: X-JTAN-AntiSPAM: not spam, Outgoing not scanned X-JTAN-AntiVirus: Found to be clean, Outgoing not scanned Received: from [10.11.0.103] (c-24-5-108-151.hsd1.ca.comcast.net [24.5.108.151]) (authenticated bits=0) by atlas.jtan.com (8.12.8p1/8.12.8) with ESMTP id l021ojgL024308 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Mon, 1 Jan 2007 20:50:47 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <653315.40463.qm@web58001.mail.re3.yahoo.com> References: <653315.40463.qm@web58001.mail.re3.yahoo.com> Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-7-416882683; protocol="application/pkcs7-signature" Message-Id: From: Sander Temme Date: Mon, 1 Jan 2007 17:50:41 -0800 To: users@httpd.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Missing Mod_Access --Apple-Mail-7-416882683 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Can Le, On Jan 1, 2007, at 4:07 PM, Can Le wrote: > Happy New Year to Sander Temme Thank you, happy new year to you too (and to all readers of users@httpd). > I do not have problem when I run my test.exe in Internet Explorer, > however, Firefox gave me these errors and asked me to down load > file test.exe, but Firefox did not run it on console: The two browsers were written by different groups of programmers, and may respond differently under certain conditions. > logs/error: [Mon Jan 01 16:58:04 2007] [error] [client 127.0.0.1] > malformed header from //script. Bad /header=

: testlcd83c.exe, > referer: http://localhost/cgi-bin/test1.cgi So, your problem is with a CGI, not with a module. This error message suggests that your testlcd83.exe (?) program writes HTML code to the browser without sending a proper HTTP header. A properly formatted response has a set of HTTP headers, followed by the HTML code. These are separated by a blank line. If no headers are present, Apache thinks the HTML code your program writes (

) is intended to be a header, and will consider that invalid. I am not sure what Apache does in such a situation, but the fact that you get the expected response in Explorer does suggest that the HTML code gets written to the browser, and it does not generate an error response. As I said before, there are differences between various browsers. I have the impression that Explorer does more inspection of the data that comes from the server, and makes its own decision on how to display it. It looks like Firefox expects the (requisite) Content- type HTTP header, and in absence thereof offers to download the file. > logs/access: 127.0.0.1 - - [01/Jan/2007:17:01:41 -0600] "GET /cgi- > bin/test1.exe HTTP/1.1" //200 190 This access log line does not correspond to the error log line you posted above: it has a different time and a different request (test1.exe vs. testlcd83c.exe). However, you can see that a 200 (OK) response was generated. > I did not reboost my windows XP Home and Apache2, but I restarted > httpd.conf whenever I changed any line. > > Please tell me what should I have for: > LoadModule, The requests you describe above seem to be CGI requests, and CGI programs are loaded from the file system. They are not loaded through a LoadModule directive. > or > default type, > or > or : > application/octet > or > text/html A CGI program is responsible for the entire response, including headers. Apache does not add a Content-type header to the CGI output. Your program has to take care of that. Regards, Sander > Thank you for helps > > Can le > > Sander Temme wrote: Can Le, > > On Dec 29, 2006, at 7:16 PM, Can Le wrote: > > > I checked my httpd.conf and I am having mod_authz_host.so. > > Please tell us in detail about the error you are referring to: > > 1) Do you see it when you try to start the server, or when you access > a URL on your server? > 2) If the error occurs when you start the server: is there output > on the > terminal window? What does it say? Is there error output in the > error_log? > 3) If the error occurs when you access a URL on your server: what does > the error response say? Please turn off "Friendly Error Messages" in > Internet Explorer, or use Firefox for testing. What information > appears > in the access_log and the error_log when Apache generates the error > response? > > Please provide as much information as you can, so we can help you > find the problem. > > S. > > -- > sctemme@apache.org http://www.temme.net/sander/ > PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- sctemme@apache.org http://www.temme.net/sander/ PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF --Apple-Mail-7-416882683 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGPDCCAvUw ggJeoAMCAQICEAIyF6zjtP6rQ//mXTcll14wDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDYxODE3MDYyMFoXDTA3MDYxODE3MDYy MFowWzEOMAwGA1UEBBMFVGVtbWUxDzANBgNVBCoTBlNhbmRlcjEVMBMGA1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