# Nginx - hide server version and name in Server header and error pages

DevFeed: [Nginx - hide server version and name in Server header and error pages](<https://devfeed.tech/articles/nginx-hide-server-version-and-name-in-server-header-and-error-pages-27563.md>)

Original publisher: [Read original article](<https://gagor.pro/2013/01/nginx-hide-server-version-and-name-in-server-header-and-error-pages/>)

Author: Tom

Published: 2013-01-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [nginx](<https://devfeed.tech/topics/nginx.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Debian](<https://devfeed.tech/topics/debian.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [debian](<https://devfeed.tech/tags/debian.md>), [external](<https://devfeed.tech/tags/external.md>), [install](<https://devfeed.tech/tags/install.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

This tutorial explains how to hide Nginx's server version and name from the Server header and error pages on Debian. It recommends installing nginx-extras, disabling server tokens, setting a custom Server header, and configuring custom error pages.

## Source excerpt

On Debian you have to install nginx-extras package (because it have built in headers_more external link module). Then you need two options (best in global configuration /etc/nginx/nginx.conf file, http part): server_tokens off; more_set_headers 'Server: BadAss'; And it's good to setup non standard error pages on every site (500 and 404 at minimum): error_page 403 404 http://mysite.com/areyoulost; error_page 502 503 504 /500.html;