{"id":118,"date":"2017-10-24T09:50:00","date_gmt":"2017-10-24T09:50:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/how-to-hide-apache-version-server-info"},"modified":"2017-10-24T11:45:23","modified_gmt":"2017-10-24T11:45:23","slug":"hide-apache-version","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/apache\/hide-apache-version","title":{"rendered":"Hide Apache Version Server Info Header Information"},"content":{"rendered":"<p>How\u00a0 to hide Apache Version, Server Info, Signaturem Header  Php Version<\/p>\n<h2><u style=\"background-color: white;\"><b>Hide Apache Version Number<br \/>\n<\/b><\/u><\/h2>\n<p>To hide the Apache information, you need to do the following changes the Apache configuration file \/etc\/httpd\/conf\/httpd.conf<br \/>\n<b style=\"background-color: #999999;\">#\/etc\/httpd\/conf\/httpd.conf<\/b><\/p>\n<p>#ServerTokens Os<br \/>\n#ServerSignature On<br \/>\nto<br \/>\n#ServerTokens Prod\u00a0 or\u00a0 #ServerTokens ProductOnly <b style=\"background-color: #999999;\"><br \/>\n#ServerSignature Off<\/b><\/p>\n<p>Now you need to restart your apache server using the following command<br \/>\n<b style=\"background-color: #cccccc;\">#service httpd restart<\/b><br \/>\nNow the output for apache header looks like below<\/p>\n<p>Server: Apache<\/p>\n<p><u style=\"background-color: white;\"> <b>Hide PHP Version Details:<\/b><\/u><\/p>\n<p>To hid the PHP information you have to edit \/etc\/php.ini\u00a0 and modify the following options<br \/>\n<b style=\"background-color: #999999;\">#vim \/etc\/php.ini<br \/>\n<\/b><br \/>\n<b style=\"background-color: #999999;\">#expose_php On<br \/>\nto<br \/>\n#expose_php Off<\/b><br \/>\nNow you need to restart your apache server<br \/>\n<b style=\"background-color: #999999;\">#service httpd restart<\/b><br \/>\nAfter making this change PHP will no longer add it\u2019s signature to the web server header.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How\u00a0 to hide Apache Version, Server Info, Signaturem Header Php Version Hide Apache Version Number To hide the Apache information, you need to do the following changes the Apache configuration&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/apache\/hide-apache-version\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/118"}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":4,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":769,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/118\/revisions\/769"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}