# Add\_header help

**URL:** <https://www.ruby-forum.com/t/add-header-help/199302>\
**Category:** NGINX\
**Created:** [November 18, 2010, 8:19am UTC](https://www.ruby-forum.com/t/add-header-help/199302 "2010-11-18T08:19:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 18, 2010, 8:19am UTC](https://www.ruby-forum.com/t/add-header-help/199302/1 "2010-11-18T08:19:43Z")

</div>

I’m using nginx for load balancer. For debugging purposes, I’m trying to  
add\_header on 50x error.  
But based on manual, it’s not possible.

```
    location = /50x.html {
            add_header Cluster server01;
            root /etc/nginx/html;
    }

```

Is there any other way to do this?

---

<div class="post-metadata">

**Author:** ![Indo\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ce7236/32.png) [@Indo\_P](https://www.ruby-forum.com/u/Indo_P)\
**Post date:** [November 18, 2010, 8:32am UTC](https://www.ruby-forum.com/t/add-header-help/199302/2 "2010-11-18T08:32:17Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Have you ever tried ngx\_headers\_more?

> **[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

于 10-11-18 下午3:18, Indo P. 写道:

> 

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG/MacGPG2 v2.0.12 (Darwin)

iEYEARECAAYFAkzk1jcACgkQdcWH549obljYYQCglucXw+c1KvcCBA+qBoAVfmvV  
oh0An3Xtk75t0AverJmBU3qzxK5cQh1v  
=kmrc  
-----END PGP SIGNATURE-----
