Server: Apache/1.3.20 (Unix) message removal

Server: Apache/1.3.20 (Unix) message removal

Post by Mik » Thu, 11 Oct 2001 22:54:51



How can I remove the next line of text:

"Server: Apache/1.3.20 (Unix)"

After doing say:

telnet mywww.mydomain.com 80
GET /etc/passwd HTTP/1.0

HTTP/1.1 400 Bad Request
Date: Wed, 10 Oct 2001 13:39:32 GMT
Server: Apache/1.3.20 (Unix)  <------------- I want to removed this!
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Bad Request</H1>
Your browser sent a request that this server could not understand.<P>
Invalid URI in request GET /etc/passwd HTTP/1.0<P>
</BODY></HTML>

I do not wish to advertise what server and version I'm running...

Thank you,

Mike

 
 
 

Server: Apache/1.3.20 (Unix) message removal

Post by Dan Wilg » Fri, 12 Oct 2001 06:27:17




> How can I remove the next line of text:

> "Server: Apache/1.3.20 (Unix)"

ServerTokens minimal

--

** Remove the -MUNGE in my address to reply **

 
 
 

Server: Apache/1.3.20 (Unix) message removal

Post by Timo Vehvil?in » Fri, 12 Oct 2001 15:10:53





> > How can I remove the next line of text:

> > "Server: Apache/1.3.20 (Unix)"

> ServerTokens minimal

ServerTokens minimal does not remove this header, it just drops OS:
Server: Apache/1.3.20

even ServerTokens prod is better (whitout OS and version):
Server: Apache

But I don't know any easy way to remove that header. Of course, edit the
source...

--
Timo Vehvil?inen
http://www.homehole.net/

 
 
 

Server: Apache/1.3.20 (Unix) message removal

Post by Kurt Cyphe » Fri, 19 Oct 2001 23:32:25



>How can I remove the next line of text:

>"Server: Apache/1.3.20 (Unix)"

[SNIP]
>I do not wish to advertise what server and version I'm running...

>Thank you,

>Mike

According to O'Reilly's "Apache: The Definitive Guide", the directive:
"ServerSignature off" in your config file should do the trick.

Kurt