• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved How to disable Nginx server signature?

raytracy

Basic Pleskian
I have turned the server_tokens off that disabled nginx version, but still disclosure the server signature:

HTTP/1.1 200 OK
Server: nginx
Date: Thu, 24 Nov 2016 11:54:25 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive


It seems the only way to disable it is re-compile from source, but that will break the yum update capability.
Is there any way to disable or overwrite the default signature and still can be update from yum repository in future?
 
Hi raytracy,

the setting "server_tokens off;" in your "nginx.conf" only prevents the reply of the VERSION NUMBER, but does not prevent the reply of the webserver - name itself.

Quoted from the official NGINX documents:
Enables or disables emitting nginx version in error messages and in the “Server” response header field.

If you would like to achieve the complete reply-prevention ( for whatever reason :rolleyes: ), you have to compile NGINX with for example the module => "headers_more", where you are then able to use for example:
Code:
more_set_headers 'Server: NONE-OF-YOUR-BUISINESS';
or you may clear the COMPLETE reply with
Code:
more_clear_headers 'Server';


It seems the only way to disable it is re-compile from source, but that will break the yum update capability.
Correct.

Is there any way to disable or overwrite the default signature and still can be update from yum repository in future?
There are only the above described methods.
 
Back
Top