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

How to install glibc 2.14 on RHEL 6/ RHEL 7/ CentOS 7

Export and Import users/groups and OU in AD Server 2008 using LDIFDE command.

How to Set Up and Configure latest yum repository on CentOS