Welcome! Log In Create A New Profile

Advanced

proxy_hide_header

March 04, 2010 07:27AM
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?
Subject Author Posted

proxy_hide_header

giskarda March 04, 2010 07:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready