Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Reverse Proxy and Host, X-Real-IP and X-Scheme custom Headers

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


mariocesar.c50 at gmail

Sep 23, 2009, 3:21 PM

Post #1 of 4 (751 views)
Permalink
Reverse Proxy and Host, X-Real-IP and X-Scheme custom Headers

Hello all,

In the reverse proxy handler I need to setup the Host, X-Real-IP and
X-Scheme headers to be populated by cherokee with the remote users data,
as nginx do:

The exact question would be how can I do this:
http://gist.github.com/192333#LID14 in cherokee.

I don't see any docs in cherokee-project.com about this, so I am guessing is
a *hide* feature :D, I would be so grateful for a quick answers as my
coworkers want to install nginx in our servers while I am sleeping ... :'(

Best regards :-)

--
Mario César Señoranis Ayala.
Charles de Gaulle<http://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html>
- "The better I get to know men, the more I find myself loving dogs."


aperez at skarcha

Sep 23, 2009, 3:38 PM

Post #2 of 4 (732 views)
Permalink
Re: Reverse Proxy and Host, X-Real-IP and X-Scheme custom Headers [In reply to]

Hello,

On Thu, Sep 24, 2009 at 12:21 AM, Mario César <mariocesar.c50 [at] gmail> wrote:

> In the reverse proxy handler I need to setup the Host, X-Real-IP and
> X-Scheme headers to be populated by cherokee with the remote users data,
> as nginx do:
>
> The exact question would be how can I do this:
> http://gist.github.com/192333#LID14 in cherokee.
>
> I don't see any docs in cherokee-project.com about this, so I am guessing is
> a *hide* feature :D, I would be so grateful for a quick answers as my
> coworkers want to install nginx in our servers while I am sleeping ... :'(

"Host" and "X-Real-IP" headers are sent to the backends by default,
but "X-Scheme" is not supported yet.


--
Saludos:
Antonio Pérez
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


mariocesar.c50 at gmail

Sep 23, 2009, 9:14 PM

Post #3 of 4 (733 views)
Permalink
Re: Reverse Proxy and Host, X-Real-IP and X-Scheme custom Headers [In reply to]

El jue, 24-09-2009 a las 00:38 +0200, Antonio Pérez escribió:
> Hello,
>
> On Thu, Sep 24, 2009 at 12:21 AM, Mario César <mariocesar.c50 [at] gmail> wrote:
>
> > In the reverse proxy handler I need to setup the Host, X-Real-IP and
> > X-Scheme headers to be populated by cherokee with the remote users data,
> > as nginx do:
> >
> > The exact question would be how can I do this:
> > http://gist.github.com/192333#LID14 in cherokee.
> >
> > I don't see any docs in cherokee-project.com about this, so I am guessing is
> > a *hide* feature :D, I would be so grateful for a quick answers as my
> > coworkers want to install nginx in our servers while I am sleeping ... :'(
>
> "Host" and "X-Real-IP" headers are sent to the backends by default,
> but "X-Scheme" is not supported yet.
>
>

I would explain myself better.

I need that the header Host takes the value of X-Forwarded-Host header
cause we are building an application that is using facebook auth feature
built on tornado web framework, which uses Host header to redirect on
authentification. After the user logins on our domain.com, facebook
redirects to 127.0.0.1:8000. That's the issue ... :'(

Here is the headers and config for cherokee and nginx
http://gist.github.com/192498 you can easily see the differences

My *nginx-fan-lead-dev* is getting annoying with all his comments about
cherokee ¬¬

I am guessing this is posible as is posible in nginx.

So, Alvaro if you are reading? any tips, ideas, explanation?

We are using Cherokee Web Server 0.99.25 r3673

Best Regards

--
Mario César Señoranis Ayala

Twitter: http://twitter.com/mariocesar_bo
Arte: http://mariocesar.deviantart.com
Blog Software Libre: http://softwarelibre.org.bo/mariocesar
Noticias Compartidas: http://tinyurl.com/mariocesar-shared-news
Attachments: signature.asc (0.19 KB)


aperez at skarcha

Sep 24, 2009, 1:16 AM

Post #4 of 4 (735 views)
Permalink
Re: Reverse Proxy and Host, X-Real-IP and X-Scheme custom Headers [In reply to]

Hello,

2009/9/24 Mario César Señoranis <mariocesar.c50 [at] gmail>:

>> > In the reverse proxy handler I need to setup the Host, X-Real-IP and
>> > X-Scheme headers to be populated by cherokee with the remote users data,
>> > as nginx do:
>>
>> "Host" and "X-Real-IP" headers are sent to the backends by default,
>> but "X-Scheme" is not supported yet.
>
> I would explain myself better.
>
> I need that the header Host takes the value of X-Forwarded-Host header
> cause we are building an application that is using facebook auth feature
> built on tornado web framework, which uses Host header to redirect on
> authentification. After the user logins on our domain.com, facebook
> redirects to 127.0.0.1:8000. That's the issue ... :'(

Yes, you can do it... There is a checkbox in HTTP reverse proxy
configuration (Preserve Host header): "Preserve the original "Host:"
header sent by the client. (Default No)"


--
Saludos:
Antonio Pérez
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.