<div dir="ltr">and even with 6081 the log reports followings<div><br></div><div>[error] 17648#0: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 88.198.185.226, server: <a href="http://www.dustri.bookopt.de">www.dustri.bookopt.de</a>, request: "GET / HTTP/1.1", upstream: "<a href="http://127.0.0.1:6081/">http://127.0.0.1:6081/</a>"<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 3:42 PM, Joydeep Bakshi <span dir="ltr"><<a href="mailto:joydeep.bakshi@netzrezepte.de" target="_blank">joydeep.bakshi@netzrezepte.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the info, but after starting varnish only the following ports are open<div><br></div><div><div>
# netstat -nat | grep 60</div><div>tcp 0 0 <a href="http://0.0.0.0:6082" target="_blank">0.0.0.0:6082</a> 0.0.0.0:* LISTEN</div>
<div>tcp 0 0 :::6082 :::* LISTEN</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 3:33 PM, Dridi Boukelmoune <span dir="ltr"><<a href="mailto:dridi.boukelmoune@zenika.com" target="_blank">dridi.boukelmoune@zenika.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Tue, Apr 22, 2014 at 10:04 AM, Joydeep Bakshi<br>
<<a href="mailto:joydeep.bakshi@netzrezepte.de" target="_blank">joydeep.bakshi@netzrezepte.de</a>> wrote:<br>
> Hello all,<br>
><br>
> My setting works well through nginx->apache but not through<br>
> nginx->varnish->apache<br>
><br>
> apache is configured to listen to port 8080 . when nginx uses<br>
><br>
> proxy_pass <a href="http://127.0.0.1:8080" target="_blank">http://127.0.0.1:8080</a><br>
><br>
> the sites are running fine.<br>
><br>
> If I introduce varnish after nginx by [proxy_pass <a href="http://127.0.0.1:6082" target="_blank">http://127.0.0.1:6082</a>]<br>
> the nginx starts throwing following error and browser also shows "Zero Sized<br>
> Reply"<br>
<br>
</div>Hi,<br>
<br>
Varnish listens to the port 6081 by default for HTTP. The port 6082 is<br>
the default port for the process administration (eg. varnishadm).<br>
<br>
Cheers,<br>
Dridi<br>
<div><br>
> [error] 17147#0: *207 upstream sent no valid HTTP/1.0 header while reading<br>
> response header from upstream<br>
><br>
> and /var/log/messages shows<br>
><br>
> varnishd[16984]: CLI telnet 127.0.0.1 42212 127.0.0.1 6082 Wr 101 Unknown<br>
> request.#012Type 'help' for more info.#012all commands are in lower-case.<br>
><br>
> varnishd[16984]: CLI telnet 127.0.0.1 42212 127.0.0.1 6082 Rd Cache-Control:<br>
> max-age=0<br>
><br>
> obviously varnish is configured to listen to apache<br>
><br>
> backend default {<br>
> .host = "127.0.0.1";<br>
> .port = "8080";<br>
> }<br>
><br>
> Can anyone please suggest the possible reason which is causing the problem ?<br>
><br>
</div>> _______________________________________________<br>
> varnish-misc mailing list<br>
> <a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
> <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>