Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

v2.0.40: 'ServerTokens Major|Minor' broken?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  password protection (.htaccess) and streaming mp3..  
Author Message
jfischer_link5

External


Since: Jul 09, 2003
Posts: 5



(Msg. 1) Posted: Wed Jul 09, 2003 3:27 am
Post subject: v2.0.40: 'ServerTokens Major|Minor' broken?
Archived from groups: alt>apache>configuration (more info?)

With Apache 2.0.40 (p/o Red Hat Linux 9), if I specify

ServerTokens Prod[uctOnly]|Min[imal]|OS|Full

this generates the expected 'Server:' line in the HTTP response header.
But if I specify either,

ServerTokens Major|Minor

the effect is the same as specifying

ServerTokens Full

For example, if I specify

ServerTokens Major

and restart the Apache server, here's what the server sends when when I
issue an HTTP request:

<example>

[me]$ lynx -mime_header http://localhost/index.html
HTTP/1.1 200 OK
Date: Wed, 09 Jul 2003 05:01:36 GMT
Server: Apache/2.0.40 (Red Hat Linux) mod_perl/1.99_07-dev Perl/v5.8.0
PHP/4.2.2 mod_python/3.0.1 Python/2.2.2 mod_ssl/2.0.40 OpenSSL/0.9.7a DAV/2
Last-Modified: Wed, 09 Jul 2003 04:56:43 GMT
ETag: "645e4-13e-2a70f8c0"
Accept-Ranges: bytes
Content-Length: 318
Connection: close
Content-Type: text/html; charset=ISO-8859-1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN
"http://www.w3.org/TR/html4/loose.dtd"">
<HTML>
<HEAD>
<TITLE>Test Page</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="GENERATOR" content="Quanta Plus">
</HEAD>
<BODY>
<P>Hello, World!</P>
</BODY>
</HTML>

</example>

AFAICT from the Apache 2.0 documentation,

http://httpd.apache.org/docs-2.0/mod/core.html#servertokens

the 'Server:' line in this example /should/ read,

Server: Apache/2

I ran some Bugzilla queries on this at

http://nagoya.apache.org/bugzilla/query.cgi

but I didn't find anything. So if someone else can: a) observe this same
behavior with the latest-and-greatest Apache release, and b) confirm
this is a bug, then I'll submit a bug report on it.

--
Jim

To reply by email, remove "link" and change "now.here" to "yahoo"
jfischer_link5809{at}now.here.com

 >> Stay informed about: v2.0.40: 'ServerTokens Major|Minor' broken? 
Back to top
Login to vote
user2348

External


Since: Jun 28, 2003
Posts: 203



(Msg. 2) Posted: Wed Jul 09, 2003 8:01 pm
Post subject: Re: v2.0.40: 'ServerTokens Major|Minor' broken? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jim Fischer" <jfischer_link5809 DeleteThis @now.here.com> wrote in message
news:pzNOa.1645$fa3.426@fe01.atl2.webusenet.com...
 > With Apache 2.0.40 (p/o Red Hat Linux 9), if I specify
 >
 > ServerTokens Prod[uctOnly]|Min[imal]|OS|Full
 >
 > this generates the expected 'Server:' line in the HTTP response header.

Those verticle bars mean OR. You use one of the options, not the whole lot
complete with the bars.

Richard.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: v2.0.40: 'ServerTokens Major|Minor' broken? 
Back to top
Login to vote
jfischer_link5

External


Since: Jul 09, 2003
Posts: 5



(Msg. 3) Posted: Wed Jul 09, 2003 8:01 pm
Post subject: Re: v2.0.40: 'ServerTokens Major|Minor' broken? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Richard Antony Burton wrote:
 > "Jim Fischer" <jfischer_link5809 DeleteThis @now.here.com> wrote in message
 > news:pzNOa.1645$fa3.426@fe01.atl2.webusenet.com...
 >
  >>With Apache 2.0.40 (p/o Red Hat Linux 9), if I specify
  >>
  >> ServerTokens Prod[uctOnly]|Min[imal]|OS|Full
  >>
  >>this generates the expected 'Server:' line in the HTTP response header.
 >
 >
 > Those verticle bars mean OR. You use one of the options, not the whole lot
 > complete with the bars.

I probably should have said, "if I specify any one of...". IOW, I
understand the purpose of the pipe chars; I'm only specifying one option
(e.g., OS) out of the listed set of options with the ServerTokens
directive. Note that in the example I provided, I stated that when I tried,

ServerTokens Major

(n.b.: only one option is specified), that the effect was the same as
specifying,

ServerTokens Full

--
Jim

To reply by email, remove "link" and change "now.here" to "yahoo"
jfischer_link5809{at}now.here.com<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: v2.0.40: 'ServerTokens Major|Minor' broken? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]