3 ms·
> BTW, please add a nice 404 so people won't see that you're running nginx/1.14.0 :-) Actually simply adding a custom 404 page won't hide the webserver/version
by napsterbr 8y ago
> BTW, please add a nice 404 so people won't see that you're running nginx/1.14.0 :-)
Actually simply adding a custom 404 page won't hide the webserver/version, as it is also sent along the HTTP response headers.
For nginx specifically, one can use the `server_tokens off;` directive, which hides the version (but not the webserver). Brings back memories of when I used to recompile the webserver to remove this header :)
Of course for UX a custom 404 page is great. Congratulations, Sir_Cmpwn, this is just awesome and I'll soon be subscribing.