Opened 8 years ago

Closed 8 years ago

#1150 closed defect (duplicate)

Apache2 http/2 as reverse proxy for nginx with iOS 10 devices

Reported by: freax@… Owned by:
Priority: critical Milestone: 1.11.7
Component: nginx-core Version: 1.11.x
Keywords: Cc:
uname -a: Linux s05657ecf 2.6.32-042stab117.16 #1 SMP Fri Sep 9 21:57:19 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.11.6
built with OpenSSL 1.0.2j 26 Sep 2016
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_spdy_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/build/nginx-QXPftz/nginx-1.11.6/debian/modules/nginx-auth-pam --add-dynamic-module=/build/nginx-QXPftz/nginx-1.11.6/debian/modules/nginx-dav-ext-module --add-dynamic-module=/build/nginx-QXPftz/nginx-1.11.6/debian/modules/nginx-echo --add-dynamic-module=/build/nginx-QXPftz/nginx-1.11.6/debian/modules/nginx-upstream-fair --add-dynamic-module=/build/nginx-QXPftz/nginx-1.11.6/debian/modules/ngx_http_substitutions_filter_module

Description

Nginx cannot proxy to Apache by h2 protocol:

Protocols h2 http/1.1

removing this line solve the problem, but I still cannot understand why it's happing ONLY WITH devices iOS 10.

http://serverfault.com/questions/818535/nginxapache2letsencrypt-with-iphone-cannot-display-page

Change History (3)

comment:1 by Maxim Dounin, 8 years ago

Resolution: duplicate
Status: newclosed

Looks like you are facing the issue with Upgrade header, see #915. On nginx side this can be resolved by using

    proxy_hide_header Upgrade;

in the configuration.

comment:2 by freax@…, 8 years ago

Resolution: duplicate
Status: closedreopened

Why it is happen only with devices with iOS 10?

comment:3 by Maxim Dounin, 8 years ago

Resolution: duplicate
Status: reopenedclosed

It depends on the client how to handle the situation in question.

Note: See TracTickets for help on using tickets.