logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: HTTP Headers
Author
Michael T



Joined: 28 Feb 2011
Posts: 39

PostPosted: Mon 28 Feb '11 15:21    Post subject: HTTP Headers Reply with quote

A recent pen test has identified that http headers are enabled, how do I disable them?


HTTP header Version identification

Severity: Low
Description: This HTTP Header exposes product version information (Apache module, Java Servlet, OpenSSL). This behavior might help the attacker in further targeted attacks.

Solution: Change apache configuration to omit the version details.

Many thanks for any help.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Mon 28 Feb '11 17:07    Post subject: Reply with quote

ServerTokens Prod should fix that.

also ServerSignature Off is recommend.
Back to top
Michael T



Joined: 28 Feb 2011
Posts: 39

PostPosted: Mon 28 Feb '11 19:43    Post subject: Reply with quote

OK how do I implement these?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Tue 01 Mar '11 14:17    Post subject: Reply with quote

Look for it in your httpd.conf
Back to top
Michael T



Joined: 28 Feb 2011
Posts: 39

PostPosted: Tue 01 Mar '11 14:27    Post subject: Reply with quote

Neither are in the http or ssl .conf files.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Tue 01 Mar '11 18:54    Post subject: Reply with quote

Which OS do you run?
Back to top
Michael T



Joined: 28 Feb 2011
Posts: 39

PostPosted: Wed 02 Mar '11 11:53    Post subject: Reply with quote

Windows Server 2003
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Wed 02 Mar '11 18:46    Post subject: Reply with quote

Than just add that two lines into your httpd.conf
and restart apache.
Code:

ServerTokens Prod
ServerSignature Off


BUT, if you include httpd-default.conf than change it there!
Back to top
Michael T



Joined: 28 Feb 2011
Posts: 39

PostPosted: Wed 02 Mar '11 19:19    Post subject: Reply with quote

Many thanks, should it be in any particular place?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Thu 03 Mar '11 13:53    Post subject: Reply with quote

Anywhere
Back to top


Reply to topic   Topic: HTTP Headers View previous topic :: View next topic
Post new topic   Forum Index -> Apache