# Hiding the identity of nginx

**URL:** <https://www.ruby-forum.com/t/hiding-the-identity-of-nginx/186002>\
**Category:** NGINX\
**Created:** [March 30, 2010, 10:43am UTC](https://www.ruby-forum.com/t/hiding-the-identity-of-nginx/186002 "2010-03-30T10:43:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![huet\_bartels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8dc957/32.png) [@huet\_bartels](https://www.ruby-forum.com/u/huet_bartels)\
**Post date:** [March 30, 2010, 10:43am UTC](https://www.ruby-forum.com/t/hiding-the-identity-of-nginx/186002/1 "2010-03-30T10:43:43Z")

</div>

Dear All.

Have managed to check the following files to change the identity of  
nginx to another string, plus the footer section of the error pages.

This seems to of work for the most part by changing the following files.

src/http/ngx\_http\_header\_filter\_module.c  
src/http/ngx\_http\_special\_response.c

But when I looked at the headers via firefox the images where still  
showing nginx as the server. Where else would I need to change this in  
the source to completely hide the string nginx from the public

thank you in advance

Huet

---

<div class="post-metadata">

**Author:** ![huet\_bartels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8dc957/32.png) [@huet\_bartels](https://www.ruby-forum.com/u/huet_bartels)\
**Post date:** [March 30, 2010, 11:12am UTC](https://www.ruby-forum.com/t/hiding-the-identity-of-nginx/186002/2 "2010-03-30T11:12:35Z")

</div>

On Tue, Mar 30, 2010 at 09:42, huet bartels [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Dear All.
> 
> Have managed to check the following files to change the identity of  
> nginx to another string, plus the footer section of the error pages.

It would be easier (and more useful) to personalize your error pages.  
For instance:  
error\_page 404 /40x.html;  
location = /40x.html {  
root /var/www/nginx-default/default;  
}

> But when I looked at the headers via firefox the images where still  
> showing nginx as the server. Â Where else would I need to change this in  
> the source to completely hide the string nginx from the public

The "Server: " header is what you’re looking for. I’m not sure if  
that’s mandatory by some RFC, but you’d have to dig into other files.  
If you search the archive you might find a ‘patch’ somewhere - whether  
it still applies for current versions i don’t know.

–  
() ascii-rubanda kampajno - kontraÅ­ html-a retpoÅto  
/\ ascii ribbon campaign - against html e-mail

---

<div class="post-metadata">

**Author:** ![huet\_bartels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8dc957/32.png) [@huet\_bartels](https://www.ruby-forum.com/u/huet_bartels)\
**Post date:** [March 30, 2010, 8:11pm UTC](https://www.ruby-forum.com/t/hiding-the-identity-of-nginx/186002/3 "2010-03-30T20:11:15Z")

</div>

On 03/30/2010 11:42 AM, huet bartels wrote:

> But when I looked at the headers via firefox the images where still  
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

Hi,

Try this module:

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

/gh

---

<div class="post-metadata">

**Author:** ![huet\_bartels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8dc957/32.png) [@huet\_bartels](https://www.ruby-forum.com/u/huet_bartels)\
**Post date:** [March 31, 2010, 10:38am UTC](https://www.ruby-forum.com/t/hiding-the-identity-of-nginx/186002/4 "2010-03-31T10:38:26Z")

</div>

Hi Georgi,

Thanks for the pointer to the module I will give it a try.

regards

Huet

---

<div class="post-metadata">

**Author:** ![huet\_bartels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8dc957/32.png) [@huet\_bartels](https://www.ruby-forum.com/u/huet_bartels)\
**Post date:** [March 31, 2010, 10:40am UTC](https://www.ruby-forum.com/t/hiding-the-identity-of-nginx/186002/5 "2010-03-31T10:40:12Z")

</div>

Hi Nuno,

Thank you for the tip on error pages, I am fairly new to nginx from  
apache, and now I totally sold. I will never go back unless I have to.

regards

Huet
