You can configure nginx version information in a conf file, but
What should I do if I want the word nginx to be a different string?
The purpose is to hide that you are using nginx.
The reason is not because of security, but because people who say, "You're using nginx" when you show the service to people are a bit annoying.
There are a lot of people who want to see it.
So as a joke, I want to play with a string like "server:fuck".
nginx
Write the following settings in server{}
.
more_set_headers "Server:fukuoka";
The response header should look like this:
Date:Fri, 18 Dec 2015 19:07:22 GMT
Content-Type: text/html
Content-Length: 233
Connection:keep-alive
Server: Fukuoka
© 2024 OneMinuteCode. All rights reserved.