upstream sent no valid HTTP/1.0 header while reading response header from upstream,

2021-01-26 Thread sanflores
I'm using tomcat as a backend (using websocket), and is hostead on AWS behind a balancer. After a some time (acording to timeouts) I'm starting to get the error that the upstream sent no valid HTTP/1.0, but what is strange, is that I'm only using HTTP/1.1, this is m

Re: HTTP 1.0

2019-02-13 Thread Maxim Dounin
Hello! On Wed, Feb 13, 2019 at 12:12:15PM -0600, Dusty Campbell wrote: > Thanks for the help. > > > There is no way to force HTTP/1.0. You can, however, disable > > various HTTP/1.1-specific mechanisms, including keepalive and > > chunked transfer encoding, see here: &g

Re: HTTP 1.0

2019-02-13 Thread Dusty Campbell
Thanks for the help. > There is no way to force HTTP/1.0. You can, however, disable > various HTTP/1.1-specific mechanisms, including keepalive and > chunked transfer encoding, see here: > > http://nginx.org/r/keepalive_timeout > http://nginx.org/r/chunked_transfer_encoding

Re: HTTP 1.0

2019-02-12 Thread Maxim Dounin
Hello! On Tue, Feb 12, 2019 at 11:03:08AM -0600, Dusty Campbell wrote: > Is there a way to force HTTP 1.0 for a location? > > I need to proxy a feature that depends on HTTP 1.0, not just between Nginx > and the backend server, but also between the client and Nginx. There is no

HTTP 1.0

2019-02-12 Thread Dusty Campbell
Hello, Is there a way to force HTTP 1.0 for a location? I need to proxy a feature that depends on HTTP 1.0, not just between Nginx and the backend server, but also between the client and Nginx. Thanks, Dusty Campbell ___ nginx mailing list nginx

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

2014-04-22 Thread Joydeep Bakshi
Dear all, Problem Solved. Here is the steps required to fix it on opensuse 13.1 varnish listen to port 80 as default in opensuse and there is no port 6081 . Hence /etc/sysconfig/varnish has to be edited to add "-a :6081" like below VARNISHD_PARAMS="-f /etc/varnish/vcl.conf -a:6081 -T:6082 -s

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

2014-04-22 Thread Maxim Dounin
y_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 >

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

2014-04-22 Thread Lukas Tribus
> @Lukas - attached is the cap file  The request is bogus, imho. A GET request should not contain a body, it doesn't makes sense. > @Maxim - after starting varnish only the following port comes up  >  > # netstat -nat | grep 60  > tcp 0 0 0.0.0.0:6082  > 0.0.0.0:* LISTEN  >

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

2014-04-22 Thread Joydeep Bakshi
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[16

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

2014-04-22 Thread Maxim Dounin
p://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 upstr

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

2014-04-22 Thread Lukas Tribus
> Thanks Lukas, > > here are the O/P Please post the capture file. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

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

2014-04-22 Thread Joydeep Bakshi
B^C 212212301@^@@^F256250^?^@^@^A^?^@^@^A244377^W302^\241262O:200/SP^X^AV^A^?^@^@GET / HTTP/1.0 Host: dustri.bookopt.de X-Real-IP: 198.168.1.4 X-Forwarded-For: 198.168.1.4 X-Server-Address: 198.168.1.2 Connection: closeUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100

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

2014-04-22 Thread Lukas Tribus
> Hello Lukas, > > I have just checked and found nothing > > # tcpdump -vv port 6082 > tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size > 65535 bytes Fix your capture. - capture the traffic on loopback, not eth0 - don't truncate packets (-s 0) - write in a cap file, tc

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

2014-04-22 Thread Joydeep Bakshi
h 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 ups

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

2014-04-22 Thread Lukas Tribus
;  > 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 f

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

2014-04-22 Thread Joydeep Bakshi
.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

Re: proxy_pass defaulting to http 1.0

2013-06-15 Thread Maxim Dounin
Hello! On Fri, Jun 14, 2013 at 04:54:26PM +0200, Tu Tr wrote: > Since proxy_pass by default uses HTTP 1.0 shouldn't it also clear the > Connection header by default? By default, nginx uses "Connection: close" in upstream requests for maximum compatibility with various bac

proxy_pass defaulting to http 1.0

2013-06-14 Thread Tu Tr
Since proxy_pass by default uses HTTP 1.0 shouldn't it also clear the Connection header by default? This causes major problems for the unsuspecting reverse proxy that encounters a .NET system.net.WebClient request. WebClient automatically sends Connection: keep-alive even for a HTTP 1.1 re