# Proxy\_hide\_header

**URL:** <https://www.ruby-forum.com/t/proxy-hide-header/184560>\
**Category:** NGINX\
**Created:** [March 4, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/proxy-hide-header/184560 "2010-03-04T13:28:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![giskarda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/7c8e57/32.png) [@giskarda](https://www.ruby-forum.com/u/giskarda)\
**Post date:** [March 4, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/proxy-hide-header/184560/1 "2010-03-04T13:28:11Z")

</div>

when i curl for a url i get this answer back:

> 

\< HTTP/1.1 200 OK  
\< Server: nginx/0.7.65  
\< Date: Thu, 04 Mar 2010 12:18:27 GMT  
\< Content-Type: application/json  
\< Connection: close  
\< Expires: Thu, 04 Mar 2010 12:18:27 UTC  
\< http.context.path: /1/  
\< jersey.response:  
com.sun.jersey.spi.container.ContainerResponse@17646d60  
\< http.custom.headers: {Content-Type=text/plain}  
\< http.request.path: /2/messages/latest.json  
\< http.status: 200  
\< Transfer-Encoding: chunked

i want to remove

\< http.context.path: /1/  
\< jersey.response:  
com.sun.jersey.spi.container.ContainerResponse@17646d60  
\< http.custom.headers: {Content-Type=text/plain}  
\< http.request.path: /2/messages/latest.json  
\< http.status: 200

so i used the proxy\_hide\_header directive in this way:

```
        location / {
  if ($arg_id) {
    proxy_pass http://authorized;
    break;
  }
    proxy_pass http://anonymous;
    proxy_hide_header http.context.path;
    proxy_hide_header jersey.response;
    proxy_hide_header http.request.path;
    proxy_hide_header http.status ;
}

```

but it doesn’t work. any clue?

Posted at Nginx Forum:

> **[proxy\_hide\_header](https://forum.nginx.org/read.php?2,59880,59880#msg-59880)**
>
> when i curl for a url i get this answer back: \> \< HTTP/1.1 200 OK \< Server: nginx/0.7.65 \< Date: Thu, 04 Mar 2010 12:18:27 GMT \< Content-Type: application/json \< Connection: close \< Expires: Thu, 04 Mar 2010 12:18:27 UTC
