You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "S.A. Birl" <sb...@concept.ocis.temple.edu> on 2006/09/26 22:49:59 UTC
[users@httpd] "malformed header from script" from include files about META tags
Hello all:
I searched the archives and could not find an answer:
I just upgraded from 2.0.51 to 2.2.3 today and was testing to see if
anything might have changed. And it did:
I have a file called .header.shtml In said file:
<title>Title</title>
<meta name="robots" content="Follow, Index, NoArchive">
<LINK rel="stylesheet" href="/css.css" type="text/css" title="Birl's CSS">
I have 2 files, index.shtml and rght.shtml, which include this file.
Under 2.0.51 everything worked well. Now under 2.2.3 the error_log
has:
[Tue Sep 26 16:34:09 2006] [error] [client 127.0.0.1] malformed header from script. Bad header=<meta name="keywords" \t\tconten: .headers.shtml
It seems that Apache doesnt like ANY META tag I throw in there.
Why is this?
Thanks
Birl
Please do not CC me responses to my own posts.
I'll read the responses on the list.
Archives http://mail-archives.apache.org/mod_mbox/httpd-users/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] "malformed header from script" from include files
about META tags
Posted by "S.A. Birl" <sb...@concept.ocis.temple.edu>.
On Sep 27, 2006, Nick Kew (nospam-nick@webthing.com.ns) typed:
Nick: On Wednesday 27 September 2006 15:05, S.A. Birl wrote:
Nick: > On Sep 26, 2006, S.A. Birl
Nick: > (nospam-sbirl+Apache-List@concept.temple.edu.ns)...:
Nick: >
Nick: > Birl: When I take out the META tag from .headers.shtml, no error message.
Nick:
Nick: You must have apache configured to run ".headers.shtml" as a script.
Nay. If that were the case, Id see A LOT more errors in the error_log.
My httpd.conf for 2.2.3 is virtually identical to the 2.0.51 that
I upgraded from.
Nick: What is including it? A static file, or a dynamically-generated page?
Nick: Is ".headers.shtml" in the same directory or URL-space?
(
I see that my last message never made it to the list. It would have
been sent prior to your response and prehaps explained my situation
better. It had 6 attached files.
)
http://concept.temple.edu/testing_includes/ should explain it.
Nick: > I was playing around with .headers.html some more. Seems that Apache
Nick:
Nick: .headers.html or .shtml?
.shtml
Good catch.
Thanks
Birl
Please do not CC me responses to my own posts.
I'll read the responses on the list.
Archives http://mail-archives.apache.org/mod_mbox/httpd-users/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] "malformed header from script" from include files about META tags
Posted by Nick Kew <ni...@webthing.com>.
On Wednesday 27 September 2006 15:05, S.A. Birl wrote:
> On Sep 26, 2006, S.A. Birl
> (nospam-sbirl+Apache-List@concept.temple.edu.ns)...:
>
> Birl: When I take out the META tag from .headers.shtml, no error message.
You must have apache configured to run ".headers.shtml" as a script.
What is including it? A static file, or a dynamically-generated page?
Is ".headers.shtml" in the same directory or URL-space?
> I was playing around with .headers.html some more. Seems that Apache
.headers.html or .shtml?
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.prenhallprofessional.com/title/0132409674
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] "malformed header from script" from include files
about META tags
Posted by "S.A. Birl" <sb...@concept.ocis.temple.edu>.
On Sep 26, 2006, S.A. Birl (nospam-sbirl+Apache-List@concept.temple.edu.ns)...:
Birl: When I take out the META tag from .headers.shtml, no error message.
I was playing around with .headers.html some more. Seems that Apache
doesnt like
<meta name=
but will accept
<meta http-equiv=
so I dont suppose there's a equiv for
<meta name="robots" content="Follow, NoArchive, Index">
Thanks
Birl
Please do not CC me responses to my own posts.
I'll read the responses on the list.
Archives http://mail-archives.apache.org/mod_mbox/httpd-users/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] "malformed header from script" from include files
about META tags
Posted by "S.A. Birl" <sb...@concept.ocis.temple.edu>.
On Sep 26, 2006, Joshua Slive (nospam-joshua@slive.ca.ns) typed:
Joshua: On 9/26/06, S.A. Birl <sb...@concept.ocis.temple.edu>
Joshua: wrote:
Joshua: > Hello all:
Joshua: >
Joshua: > I searched the archives and could not find an answer:
Joshua: >
Joshua: > I just upgraded from 2.0.51 to 2.2.3 today and was testing to see if
Joshua: > anything might have changed. And it did:
Joshua: >
Joshua: >
Joshua: > I have a file called .header.shtml In said file:
Joshua: > <title>Title</title>
Joshua: > <meta name="robots" content="Follow, Index, NoArchive">
Joshua: > <LINK rel="stylesheet" href="/css.css" type="text/css" title="Birl's CSS">
Joshua: >
Joshua: >
Joshua: > I have 2 files, index.shtml and rght.shtml, which include this file.
Joshua: >
Joshua: > Under 2.0.51 everything worked well. Now under 2.2.3 the error_log
Joshua: > has:
Joshua: > [Tue Sep 26 16:34:09 2006] [error] [client 127.0.0.1] malformed header from script. Bad header=<meta name="keywords" \t\tconten: .headers.shtml
Joshua: >
Joshua: > It seems that Apache doesnt like ANY META tag I throw in there.
Joshua: > Why is this?
Joshua:
Joshua: The "header" that is being referred to in the error log is an HTTP
Joshua: response header, not an html header. So what this means is that
Joshua: somehow the line "<meta name="keywords"" is being written before the
Joshua: HTTP response headers are written. You should debug whatever script
Joshua: is being called to see why this is happening.
Normally I would agree, however there are no scripts being called
either before (or after) in either index.shtml or .headers.shtml
Just 1 include virtual to another file. The error message is rather
misleading (not to mention cutoff).
When I take out the META tag from .headers.shtml, no error message.
index.shtml
+----------------------------------------+
| <html> |
| <head> |
| <!--#include virtual=".headers.shtml"> |
| |
+----------------------------------------+
Thanks
Birl
Please do not CC me responses to my own posts.
I'll read the responses on the list.
Archives http://mail-archives.apache.org/mod_mbox/httpd-users/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] "malformed header from script" from include files about META tags
Posted by Joshua Slive <jo...@slive.ca>.
On 9/26/06, S.A. Birl <sb...@concept.ocis.temple.edu> wrote:
> Hello all:
>
> I searched the archives and could not find an answer:
>
> I just upgraded from 2.0.51 to 2.2.3 today and was testing to see if
> anything might have changed. And it did:
>
>
> I have a file called .header.shtml In said file:
> <title>Title</title>
> <meta name="robots" content="Follow, Index, NoArchive">
> <LINK rel="stylesheet" href="/css.css" type="text/css" title="Birl's CSS">
>
>
> I have 2 files, index.shtml and rght.shtml, which include this file.
>
> Under 2.0.51 everything worked well. Now under 2.2.3 the error_log
> has:
> [Tue Sep 26 16:34:09 2006] [error] [client 127.0.0.1] malformed header from script. Bad header=<meta name="keywords" \t\tconten: .headers.shtml
>
> It seems that Apache doesnt like ANY META tag I throw in there.
> Why is this?
The "header" that is being referred to in the error log is an HTTP
response header, not an html header. So what this means is that
somehow the line "<meta name="keywords"" is being written before the
HTTP response headers are written. You should debug whatever script
is being called to see why this is happening.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org