Unix Technical Forum

Diff to add ServerTokens to the httpd.conf and change the default to ProductOnly

This is a discussion on Diff to add ServerTokens to the httpd.conf and change the default to ProductOnly within the lucky.openbsd.tech forums, part of the OpenBSD category; --> The following Patch adds "ServerTokens" to the httpd.conf and changes the default behavior to "ProductOnly". This may help save ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 12:04 PM
Sebastian Rother
 
Posts: n/a
Default Diff to add ServerTokens to the httpd.conf and change the default to ProductOnly

The following Patch adds "ServerTokens" to the httpd.conf and changes
the default behavior to "ProductOnly".

This may help save some time and reduce the scans of
Web-Security-Scanners wich try to scan an Apache 1.3.29 even OpenBSD
has a modfied version.

Another (maybe usefull) patch can be found here:
http://www.comsys.com.ua/files/apache-patch
It allows to disable the Server-header completly (wich can be usefull
and disables TRACE too but this function was already merged to current).

*** httpd.conf.orig Mon Jan 23 03:54:30 2006
--- httpd.conf Mon Jan 23 03:58:30 2006
***************
*** 565,570 ****
--- 565,593 ----
ServerSignature On

#
+ # This directive controls whether Server response header field which
is
+ # sent back to clients includes a description of the generic OS-type
of
+ # the server as well as information about compiled-in modules.
+ #
+ # ServerTokens Prod[uctOnly]
+ # Server sends (e.g.): Server: Apache
+ #
+ # ServerTokens Min[imal]
+ # Server sends (e.g.): Server: Apache/1.3.0
+ #
+ # ServerTokens OS
+ # Server sends (e.g.): Server: Apache/1.3.0 (Unix)
+ #
+ # ServerTokens Full (or not specified)
+ # Server sends (e.g.): Server: Apache/1.3.0 (Unix) PHP/3.0
+ # MyMod/1.2
+ #
+ # This setting applies to the entire server, and cannot be enabled or
+ # disabled on a virtualhost-by-virtualhost basis.
+
+ ServerTokens ProductOnly
+
+ #
# Aliases: Add here as many aliases as you need (with no limit). The
format is # Alias fakename realname
#

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:07 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com