How to Hide Apache and PHP version from HTTP Headers in RHEL

In this post we will discuss how to How to Hide Apache and PHP version from HTTP Headers in RHEL to compile security audit expose_php = off htaccess and apache hide server header for your website.

How to Hide Apache and PHP version from HTTP Headers in RHEL

Apache Hide Server Header: 4 Easy Steps
 
Step 1: Login to RHEL server as root user


Step 2: edit http.conf file  
# vi /etc/httpd/conf/httpd.conf

Step 3: Add “ServerSignature “ and “ServerToken” parameters  

ServerSignature Off
ServerToken Prob

Step 4: Save the configuration
 

Hide PHP version: 3 Easy Steps  

Step 1: Edit php.ini file
# vi /etc/php.ini


Step 2: change parameter for "expose_php”

change "expose_php =On" to "expose_php =Off"

Step 3: Save the configuration and restart the apache service
# service httpd restart


Comments

Popular posts from this blog

[SOLVED] YUM: can not find RHNS CA file ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

Setting an Operating System Release During Registration

YUM Update ERROR: 28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds' Trying other mirror