Put in http section in nginx config, sometimes you need just to uncomment it - as it is already there:
server_tokens off;