How to hide Apache Version and OS Identity from Errors in Apache HTTP server


Environment  : Apache Web server


-          When you install apache with source or package through installer like Yum, it display the version of Apache and OS version in the errors.
-          It also shows the module installed in the Apache server
- It also shows the Port number

Steps to follow in RHEL, CentOS , Fedora, Debian and Ubuntu

1.       Open the httpd.conf/apache2.conf  file based on the OS

# vim /etc/httpd/conf/httpd.conf (RHEL/CentOS/Fedora)
# vim /etc/apache2/apache2.conf (Debian/Ubuntu)

2.       Add the below configuration to httpd.conf/apache2.conf   and Save the file
ServerSignature Off
ServerTokens Prod

3.       Restart the Server and That’s It

# service httpd restart (RHEL/CentOS/Fedora)
# service apache2 restart (Debian/Ubuntu)

How to verify whether site is prevented from DDoS attack or not

Follow the Below URL to Check whether your site is prevented from DDoS attack or not

URL:
https://nmap.org/nsedoc/scripts/http-slowloris-check.html



Disk Cleanup or free up memory space in Windows System

Statement  : Different ways to Disk cleanup or free up memory space

Environment :
                       - Windows 8.1

Solution :

Option 1:  Open this path in run >> C:\ProgramData\Package Cache >> select all files and delete.

Option 2 : Open this path in run >> C:\Windows\ccmcache >> Select all files and delete.

Option 3 : Open this path in run > C:\Windows\SoftwareDistribution\Download >> Select all files and delete.

Option 4 : Right click on any of the drive >> Properties >>  General  tab >> click on Disk cleanup