Welcome to WebmasterWorld Guest from 54.146.201.80

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

How to change web server name?

     
7:42 pm on Jul 30, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:June 27, 2004
posts: 98
votes: 0


Hello,

How to change server name, so a custom name appears on i.e. Netcraft's what is that website running query? Like:

mywebsite (or whatever)

instead of lighttpd/1.4.22 or Apache #*$! or NginX
8:07 pm on July 30, 2010 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9063
votes: 2


I think you have to modify the source and recompile a custom Apache version. You could however try playing with the mod_headers [httpd.apache.org] directive, something like this might just work:

Header unset Server
Header set Server "mywebsite here"


Alternatively, if you just want to hide version numbers, then simply set ServerTokens [httpd.apache.org] to
ProductOnly
, which will simply display "Apache":

ServerTokens Prod
ServerSignature Off


Don't forget to go to php.ini and set expose_php to off while you're about it. :)

(Note: the above assumes you're running a dedicated server).
8:23 pm on July 30, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:June 27, 2004
posts: 98
votes: 0


Header unset
header set ...

I think that will go into httpd.conf ...
Thanks for this, and also thanks for the php.ini heads up :-)
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members