apache tutorial - How to Secure Apache Web Server | Hiding Apache version and OS information - apache - apache web server - apache server - apache2




  • Securing your web server is very important, it means allowing others to see only the intended information & protecting your data and restricting access.
  • These are common things that enhance your Apache web servers’ security.

Hiding Apache version and OS information:

  • Apache displays its version and the name of the operating system in errors as shown in below screenshot.
 Hiding Apache version and OS information

Learn Apache - Apache tutorial - Hiding Apache version and OS information - Apache examples - Apache programs

  • A hacker can use this information to launch an attack using the publicly available vulnerabilities in the particular version of the server or OS.
  • In order to prevent Apache webserverfromdisplaying this information, we have to modify
  • “server signature” option available in the apache configuration file. By default, it is “on”, we need to set it “off”.
vim /etc/httpd/conf/httpd.conf
click below button to copy the code. By Apache tutorial team
ServerSignature Off

ServerTokens Prod
click below button to copy the code. By Apache tutorial team
  • We have also set “ServerTokens Prod” that tells the web server to return only apache and suppress the OS major and minor version
  • After modifying the configuration file, you have to restart/reload your apache web server to make it effective.
service httpd restart
click below button to copy the code. By Apache tutorial team
 Hiding Apache version

Learn Apache - Apache tutorial - Hiding Apache version - Apache examples - Apache programs


Related Searches to How to Secure Apache Web Server | Hiding Apache version and OS information

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×