LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 04-19-2004, 08:33 PM   #1
fireman949
Member
 
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
Quote:
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.

Thanks,

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

Original Poster
Rep: Reputation: 15
^ B
 
Old 05-24-2004, 10:31 AM   #3
feczo
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:
2.0.x
look for define lines begining with
AP_SERVER_
in include/ap_release.h

1.3.x
include/httpd.h
look for define lines begining with
SERVER_BASE

Have a lot of fun

Last edited by feczo; 05-24-2004 at 11:14 AM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 11:48 AM
source code for a php3 server mrobertson Programming 1 06-24-2005 09:49 AM
Server load code Apache+PHP mindfrost82 Linux - Software 1 01-03-2005 10:43 AM
apache source code ? johnyy Linux - Software 3 12-11-2003 10:32 AM
Yo Jeremy...How the heck did you change your response headers???? ForumKid Linux - General 9 01-18-2002 06:05 AM


All times are GMT -5. The time now is 11:59 PM.

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