random1 Posted February 5, 2009 Share Posted February 5, 2009 Hi All, I have added: ServerTokens ProductOnly ServerSignature Off to the bottom of my httpd.conf file and it limits the 'Server' header to "Apache". Is there a way that I can set it to my own text? Quote Link to comment https://forums.phpfreaks.com/topic/143886-apaches-server-header/ Share on other sites More sharing options...
corbin Posted February 5, 2009 Share Posted February 5, 2009 I'm sure mod_security or mod_headers could do it. Just wondering, why do you want to change it? (You could also edit the Apache source code to change it....) Quote Link to comment https://forums.phpfreaks.com/topic/143886-apaches-server-header/#findComment-754987 Share on other sites More sharing options...
random1 Posted February 5, 2009 Author Share Posted February 5, 2009 I'm trying to hide the fact that I'm using Apache (for security reasons). The website I have is a high security portal for really important data. I want to set it to something else meaningful within my company. Quote Link to comment https://forums.phpfreaks.com/topic/143886-apaches-server-header/#findComment-754990 Share on other sites More sharing options...
trq Posted February 5, 2009 Share Posted February 5, 2009 Is there a way that I can set it to my own text? Im not sure you can do it without hacking and then recompiling apache. core.c is where the action takes place if your keen. Quote Link to comment https://forums.phpfreaks.com/topic/143886-apaches-server-header/#findComment-754991 Share on other sites More sharing options...
corbin Posted February 5, 2009 Share Posted February 5, 2009 Not sure why knowing it's Apache would be a security concern.... But I was just asking because I was wondering if you had some weird, illegitimate reason for changing it ;p. Quote Link to comment https://forums.phpfreaks.com/topic/143886-apaches-server-header/#findComment-754993 Share on other sites More sharing options...
trq Posted February 5, 2009 Share Posted February 5, 2009 I just made a patch that should create this functionality for 2.2.11 if your interested. It compiles fine but I haven't installed to test it. Quote Link to comment https://forums.phpfreaks.com/topic/143886-apaches-server-header/#findComment-755002 Share on other sites More sharing options...
corbin Posted February 5, 2009 Share Posted February 5, 2009 Just for irony, you could make it say IIS. MWA HAHAHAHA Quote Link to comment https://forums.phpfreaks.com/topic/143886-apaches-server-header/#findComment-755003 Share on other sites More sharing options...
random1 Posted February 6, 2009 Author Share Posted February 6, 2009 Thanks all Quote Link to comment https://forums.phpfreaks.com/topic/143886-apaches-server-header/#findComment-755567 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.