Author Topic: Nginx Version Hide  (Read 697 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Nginx Version Hide
« on: February 01, 2018, 09:35:47 AM »
Hello,

How can I hide version number of Nginx?

Thanks

Offline
*****
Re: Nginx Version Hide
« Reply #1 on: February 01, 2018, 11:56:01 AM »
edit : /etc/nginx/nginx.conf

find http {
add the line under http {  :-

Code: [Select]
http {
        server_tokens off;

then restart nginx
Code: [Select]
sevice nginx restart

Offline
*
Re: Nginx Version Hide
« Reply #2 on: February 01, 2018, 08:15:19 PM »
edit : /etc/nginx/nginx.conf

find http {
add the line under http {  :-

Code: [Select]
http {
        server_tokens off;

then restart nginx
Code: [Select]
sevice nginx restart

Thank you for your time.