Hide Server Version in Apache & Nginx

ID - _BUGFISH - E#62
^Top
<< Back
Mobile-Menu










Hide Server Version in Apache & Nginx
Category: Linux
Sub-Category:
Creator: Jan-Maurice Dahlmanns
Created: 2020-11-19 12:29:03
Modified: 2024-11-17 01:06:55
Views: 680

Caution: I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.

NGINX

1. Go to the nginx configuration file:

nano /etc/nginx/nginx.conf

2. Uncomment this line:

server_tokens off;

3. Restart nginx

service nginx restart

APACHE2

1. Go to your apache2 configuration File:

nano /etc/apache2/apache2.conf (for Debian/Ubuntu)
nano /etc/httpd/conf/httpd.conf (Centos)

2. Modify the line ServerTokens and ServerSignature as below:

ServerTokens Prod
ServerSignature Off 

3. Restart Apache2 Service

service apache2 restart
Currently 0 Upvotes!

captcha image
System - 2024-11-05 18:32:50
Commenting System Initialized! Have a very nice day!

Switches: 1 | Arrivals: 3 | Visits: 4
This Website is using Session Cookies for Site Functionality.