<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi,<div><br></div><div>I've been taking the alpha HTTP/2 support for a spin, and noticed that 301 redirects are missing the Location response header.  Thus, browsers don't redirect and just show an HTML page instead.</div><div><br></div><div>Here's the output of nginx -V:</div><div><br></div><div><div>nginx version: nginx/1.9.3</div><div>built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)</div><div>built with OpenSSL 1.0.2d 9 Jul 2015</div><div>TLS SNI support enabled</div><div>configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_v2_module --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --with-ipv6</div></div><div><br></div><div>I'm testing using the URL <a href="https://joeshaw.org/about" target="_blank">https://joeshaw.org/about</a> (which redirects to /about/).</div><div><br></div><div>Here's the output of a HTTP/1.1 request from curl:</div><div><br></div><div><div>< HTTP/1.1 301 Moved Permanently</div><div>* Server nginx is not blacklisted</div><div>< Server: nginx</div><div>< Date: Wed, 12 Aug 2015 14:43:41 GMT</div><div>< Content-Type: text/html</div><div>< Content-Length: 178</div><div>< Location: <a href="https://joeshaw.org/about/" target="_blank">https://joeshaw.org/about/</a></div><div>< Connection: keep-alive</div><div>< Strict-Transport-Security: max-age=15768000; preload</div><div>< Public-Key-Pins: pin-sha256="aBBtZy0hiXFCr7RV/RqoJoTCMHEhrwtB6IfgSPCY2sA="; pin-sha256="d6qzvu9zOKCb90Uez27xWltNsj0e1Md7GkYYkVoZwmm="; max-age=86400</div><div>< X-Frame-Options: DENY</div></div><div><br></div><div>Here's the HTTP/2 output from h2i (<a href="https://github.com/bradfitz/http2/tree/master/h2i" target="_blank">https://github.com/bradfitz/http2/tree/master/h2i</a>):</div><div><br></div><div><div>[FrameHeader HEADERS flags=END_HEADERS stream=1 len=284]</div><div>  :status = "301"</div><div>  server = "nginx"</div><div>  date = "Wed, 12 Aug 2015 14:44:31 GMT"</div><div>  content-type = "text/html"</div><div>  content-length = "178"</div><div>  strict-transport-security = "max-age=15768000; preload"</div><div>  public-key-pins = "pin-sha256=\"aBBtZy0hiXFCr7RV/RqoJoTCMHEhrwtB6IfgSPCY2sA=\"; pin-sha256=\"d6qzvu9zOKCb90Uez27xWltNsj0e1Md7GkYYkVoZwmm=\"; max-age=86400"</div><div>  x-frame-options = "DENY"</div></div><div><br></div><div>I hope this is helpful.</div><div><br></div><div>Thanks,</div><div>Joe</div></div>
</div><br></div>
</div><br></div>