Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-19-2004, 09:33 PM   #1
Registered: Dec 2003
Location: Walls
Distribution: Slackware 10.1;CentOS 4
Posts: 51

Rep: Reputation: 15
Apache source code hack - Server response headers 2.0.49

I'm using Apache 2.0.49. Currently the server returns a response as
"Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.7c PHP/4.3.4"

I have tried
Header unset Server
Header set Server "New Server Name"
RequestHeader unset Server
RequestHeader set Server "New Server Name"

and every combination of it. Apache was compiled with mod_headers and I can get other 'self titled' headers to work.

I've been told by a friend who file a report with a bugzilla that they replied with
Thanks for the report. It is actually the intended behaviour that modules are not allowed to change the Server header; this rule was relaxed in earlier versions of httpd-2.0 by mistake. The Server header cannot be overriden in this way from httpd-2.0.48 and later
I am wondering if anyone knows where I can edit this in the source code (as in earlier versions of Apache) or if there is a forum/place that I can find out where.


Old 04-20-2004, 01:32 PM   #2
Registered: Dec 2003
Location: Walls
Distribution: Slackware 10.1;CentOS 4
Posts: 51

Original Poster
Rep: Reputation: 15
^ B
Old 05-24-2004, 11:31 AM   #3
LQ Newbie
Registered: May 2004
Distribution: Debian + FreeBSD
Posts: 1

Rep: Reputation: 0
Re: apache

You do not need to edit source just to disable version reporting. Put
ServerTokens Prod
line into your httpd.conf
and it reports "Apache" only ...

If you realy want to play with the source, here it is:
look for define lines begining with
in include/ap_release.h

look for define lines begining with

Have a lot of fun

Last edited by feczo; 05-24-2004 at 12:14 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Source Code for a simple ftp server and client koodoo Programming 17 07-05-2013 12:48 PM
source code for a php3 server mrobertson Programming 1 06-24-2005 10:49 AM
Server load code Apache+PHP mindfrost82 Linux - Software 1 01-03-2005 11:43 AM
apache source code ? johnyy Linux - Software 3 12-11-2003 11:32 AM
Yo Jeremy...How the heck did you change your response headers???? ForumKid Linux - General 9 01-18-2002 07:05 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration