Welcome! Log In Create A New Profile

Advanced

Re: Reverse proxy requires http header from upstream?

November 04, 2012 08:57AM
Jonathan Matthews Wrote:
-------------------------------------------------------
> On 4 November 2012 02:25, raidenii <nginx-forum@nginx.us> wrote:
> > The major difference between aMule and the rest is that amule web
> server
> > does not give a http header to the client, for when I try to use
> curl to
> > grab the header it gives an empty response. (Although it will return
> the
> > correct webpage when curl grabs the webpage) And I suppose that is
> the
> > reason nginx thinks connection timeout.
> >
> > So I wonder if there is any way to let nginx "ignore" the http
> header from
> > the upstream and just pass the data whatever the upstream gives?
> Thanks in
> > advance.
>
> When you say "http header", which one do you mean?
>
> If you mean *all* headers are missing, and the server simple responds
> with data, then the server isn't actually talking HTTP at all, and
> nginx is not the right tool for the job.
>
> If that's the case, you should consider
> load-balancing/reverse-proxying it either with something that does
> talk the protocol that's being used, or something generic that can
> proxy at the TCP layer, like HAProxy.
>
> Jonathan
> --
> Jonathan Matthews // Oxford, London, UK
> http://www.jpluscplusm.com/contact.html
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

I have tried backend upstream+proxy_pass, but seems not working either.
Strangely when using browser to acess directly there is no problem at all.
Subject Author Posted

Reverse proxy requires http header from upstream?

raidenii November 03, 2012 10:25PM

Re: Reverse proxy requires http header from upstream?

Jonathan Matthews November 04, 2012 07:30AM

Re: Reverse proxy requires http header from upstream?

raidenii November 04, 2012 08:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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