I want to change the server of http response header from nginx.

Asked 2 years ago, Updated 2 years ago, 43 views

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

2022-09-29 21:55

1 Answers

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


2022-09-29 21:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.