# Renaming server response in 1.3.x not same as 1.2.x?

**URL:** <https://www.ruby-forum.com/t/renaming-server-response-in-1-3-x-not-same-as-1-2-x/222456>\
**Category:** NGINX\
**Created:** [August 29, 2012, 1:33am UTC](https://www.ruby-forum.com/t/renaming-server-response-in-1-3-x-not-same-as-1-2-x/222456 "2012-08-29T01:33:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 29, 2012, 1:33am UTC](https://www.ruby-forum.com/t/renaming-server-response-in-1-3-x-not-same-as-1-2-x/222456/1 "2012-08-29T01:33:32Z")

</div>

In nginx 1.2 & 1.3 you can modify the source to change the name:

src/http/ngx\_http\_header\_filter\_module.c (lines 48 and 49):

static char ngx\_http\_server\_string[] = “Server: Not Nginx” CRLF;  
static char ngx\_http\_server\_full\_string[] = “Server: Not Nginx/1.0”  
CRLF;

Renaming those and recompiling the source changes the server response  
name  
in nginx 1.2.

However doing this in 1.3 does not seem to change the name. It still  
says  
nginx/1.3.5. With server\_tokens off; it still just says nginx.

How can I change the server name in 1.3 without installing the 3rd party  
addon “headers more”? I want to compile from source.

Posted at Nginx Forum:

> **[Renaming server response in 1.3.x not same as 1.2.x?](https://forum.nginx.org/read.php?2,230243,230243#msg-230243)**
>
> In nginx 1.2 & 1.3 you can modify the source to change the name: src/http/ngx\_http\_header\_filter\_module.c (lines 48 and 49): static char ngx\_http\_server\_string\[\] = "Server: Not Nginx" CRLF; static char ngx\_http\_server\_full\_string\[\] =...
