Welcome! Log In Create A New Profile

Advanced

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

All files from this thread

File Name File Size   Posted by Date  
tcp6082-traffic.cap 4.5 KB open | download Joydeep Bakshi 04/22/2014 Read message
Maxim Dounin
April 22, 2014 05:36AM
Hello!

On Tue, Apr 22, 2014 at 12:55:07PM +0530, Joydeep Bakshi wrote:

> Hello all,
>
> My setting works well through nginx->apache but not through
> nginx->varnish->apache
>
> apache is configured to listen to port 8080 . when nginx uses
>
> proxy_pass http://127.0.0.1:8080
>
> the sites are running fine.
>
> If I introduce varnish after nginx by [proxy_pass http://127.0.0.1:6082]
> the nginx starts throwing following error and browser also shows "*Zero
> Sized Reply"*
>
>
> [error] 17147#0: *207 upstream sent no valid HTTP/1.0 header while reading
> response header from upstream
>
> and /var/log/messages shows
>
> varnishd[16984]: CLI telnet 127.0.0.1 42212 127.0.0.1 6082 Wr 101 Unknown
> request.#012Type 'help' for more info.#012all commands are in lower-case.
>
> varnishd[16984]: CLI telnet 127.0.0.1 42212 127.0.0.1 6082 Rd
> Cache-Control: max-age=0
>
> obviously varnish is configured to listen to apache
>
> backend default {
> .host = "127.0.0.1";
> .port = "8080";
> }
>
> Can anyone please suggest the possible reason which is causing the problem ?

It looks like you've configured nginx to pass http to varnish CLI
port. For obvious reasons this isn't going to work.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Joydeep Bakshi April 22, 2014 03:26AM

RE: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Lukas Tribus April 22, 2014 04:12AM

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Joydeep Bakshi April 22, 2014 04:46AM

RE: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Lukas Tribus April 22, 2014 04:58AM

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Joydeep Bakshi April 22, 2014 05:06AM

RE: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Lukas Tribus April 22, 2014 05:34AM

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Maxim Dounin April 22, 2014 05:36AM

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish Attachments

Joydeep Bakshi April 22, 2014 06:02AM

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Maxim Dounin April 22, 2014 06:22AM

RE: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Lukas Tribus April 22, 2014 06:24AM

Re: nginx reports [upstream sent no valid HTTP/1.0 header] when used with varnish

Joydeep Bakshi April 22, 2014 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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