Welcome! Log In Create A New Profile

Advanced

Re: Set Incoming Request Headers (similar to mod_headers)

agentzh
November 18, 2009 03:02AM
On Wed, Nov 18, 2009 at 3:39 AM, W. Andrew Loe III <andrew@andrewloe.com> wrote:
> I am trying to emulate an Apache mod_headers feature
> (http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader).

Oh, I've just hacked in the request header support to my
ngx_headers_more module:

http://github.com/agentzh/headers-more-nginx-module

> I would like to set some headers before my content handler is run.
> Specifically SSL related headers that I would like set before my
> Passenger process picks up the request. I could do this with
> proxy_set_header, but I am not proxying, the request is being picked
> up and executed by Passenger.
>

The "proxy" module should not be used here because "proxy" is a
content handler per se (just a little special in that it's also an
upstream module) and your have your own content handler (passenger
here) :)

Can you try out the "more_set_input_headers" directive provided by the
"headers more" module?

Cheers,
-agentzh
Subject Author Posted

Set Incoming Request Headers (similar to mod_headers)

W. Andrew Loe III November 17, 2009 02:44PM

Re: Set Incoming Request Headers (similar to mod_headers)

agentzh November 18, 2009 03:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
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