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.
Nginx – Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Nginx.
Tutorial Nginx – Change the server identification header
Install the package named NGINX-EXTRAS.
Edit the Nginx configuration file for the default website.
Add the following line to the configuration file.
Here is the file, before our configuration.
Here is the file, after our configuration.
Restart the Nginx service.
Verify the configured Nginx identification header.
Here is the command output.
In our example, we changed the Nginx server identification header value to show the information of an Apache server.