homepage Welcome to WebmasterWorld Guest from 23.22.2.150
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
How to change web server name?
teasers

10+ Year Member



 
Msg#: 4179400 posted 7:42 pm on Jul 30, 2010 (gmt 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

 

encyclo

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



 
Msg#: 4179400 posted 8:07 pm on Jul 30, 2010 (gmt 0)

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).

teasers

10+ Year Member



 
Msg#: 4179400 posted 8:23 pm on Jul 30, 2010 (gmt 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 :-)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved