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
Step 4: Save the configuration
Hide PHP version: 3 Easy Steps
Step 1: Edit php.ini file
# vi /etc/php.ini
change "expose_php =On" to "expose_php =Off"
Step 3: Save the configuration and restart the apache service
# service httpd restart
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
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
Post a Comment