Would you like to learn how to configure the identification banner on the Nginx server? In this tutorial, we are going to show you how to change the Nginx token on a computer running Ubuntu Linux.

• Ubuntu 18
• Ubuntu 19
• Ubuntu 20
• Nginx 1.18.0

The Nginx server will be configured to display the header of an Apache server.

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Tutorial Nginx - Change the server identification header

Install the package named NGINX-EXTRAS.

Copy to Clipboard

Edit the Nginx configuration file for the default website.

Copy to Clipboard

Add the following line to the configuration file.

Copy to Clipboard

Here is the file, before our configuration.

Copy to Clipboard

Here is the file, after our configuration.

Copy to Clipboard

Restart the Nginx service.

Copy to Clipboard

Verify the configured Nginx identification header.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, we changed the Nginx server identification header value to show the information of an Apache server.