Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23BEF108F5 for ; Fri, 16 Oct 2015 09:23:38 +0000 (UTC) Received: (qmail 50495 invoked by uid 500); 16 Oct 2015 09:23:37 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 50417 invoked by uid 500); 16 Oct 2015 09:23:37 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 50407 invoked by uid 99); 16 Oct 2015 09:23:37 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 09:23:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2F555C084E for ; Fri, 16 Oct 2015 09:23:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id EVfbG9ehnEbD for ; Fri, 16 Oct 2015 09:23:22 +0000 (UTC) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id CFAA02315C for ; Fri, 16 Oct 2015 09:23:17 +0000 (UTC) Received: by wicgb1 with SMTP id gb1so1066415wic.1 for ; Fri, 16 Oct 2015 02:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=WHypzlJ37JNbde4eN0TCBOYxAT9gGkP16Ym0ePOqrro=; b=iKbPRXCd6MClpM1QkjfjfJElABborP3XhqX3pXfcc1lFlyw1T5QE3VjaS8zQJF8Q/9 +byWraYo+b/t7ygB8te/qv3s+dZXgE/oA0ZmUOlzbnycapuKaia9+ZuVVb5+rNqMaGhZ ZjroXlexLS//nQdWuxZTdsDBwlbKzeyC/2fsDdezOWYaPtYstpyTAT0vpuQ2jpnFD974 5w9/XJUdpb9FBHsIg1hp8GPHxeAEQ3NVmOH4I3iwHmJjvJwGpJOmzle8n/ft3lZN/s5H rZ2GlzWO1G/OS4z5ks76ofmGoKPw2Y9bBBRWbr5i55JGYij5BcwheDnXfGeUEV31XLOY r+BA== X-Received: by 10.194.6.106 with SMTP id z10mr15721964wjz.104.1444987397201; Fri, 16 Oct 2015 02:23:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.27.88.10 with HTTP; Fri, 16 Oct 2015 02:22:57 -0700 (PDT) In-Reply-To: <8714C592-91B2-4B33-954C-83F44DAEBB88@greenbytes.de> References: <8714C592-91B2-4B33-954C-83F44DAEBB88@greenbytes.de> From: Chris Date: Fri, 16 Oct 2015 10:22:57 +0100 Message-ID: Subject: Re: mod_http2 protocols directive broken To: dev@httpd.apache.org Content-Type: text/plain; charset=UTF-8 Hi Stefan, here is the output of both checks. Note I will confirm also curl is compiled with http2 support and will also show curl -V output. Curl -V "curl 7.45.0 (amd64-portbld-freebsd9.3) libcurl/7.45.0 OpenSSL/1.0.2d zlib/1.2.8 libidn/1.31 nghttp2/1.3.4 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets " Curl http2 test "# curl -v --http2 -v http://freebsd-admin.com/ * Trying 2a01:4f8:201:5465::4... * Connected to freebsd-admin.com (2a01:4f8:201:5465::4) port 80 (#0) > GET / HTTP/1.1 > Host: freebsd-admin.com > User-Agent: curl/7.45.0 > Accept: */* > Connection: Upgrade, HTTP2-Settings > Upgrade: h2c > HTTP2-Settings: AAMAAABkAAQAAP__ > < HTTP/1.1 302 Found < Date: Fri, 16 Oct 2015 09:19:56 GMT < Server: Apache < X-Frame-Options: SAMEORIGIN < X-Xss-Protection: 1; mode=block < X-Content-Type-Options: nosniff < Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://*.freebsd-admin.com; connect-src 'self' https://*.freebsd-admin.com; img-src 'self' https://*.freebsd-admin.com; style-src 'unsafe-inline' 'self' https://*.freebsd-admin.com; block-all-mixed-content; < X-Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://*.freebsd-admin.com; connect-src 'self' https://*.freebsd-admin.com; img-src 'self' https://*.freebsd-admin.com; style-src 'self' 'unsafe-inline' https://*.freebsd-admin.com; block-all-mixed-content; < Location: https://freebsd-admin.com/ < Content-Length: 210 < Content-Type: text/html; charset=iso-8859-1 < 302 Found

Found

The document has moved here.

* Connection #0 to host freebsd-admin.com left intact" nghttp2 test "# nghttp -uv http://freebsd-admin.com/ [ 0.000] Connected [ 0.000] HTTP Upgrade request GET / HTTP/1.1 Host: freebsd-admin.com Connection: Upgrade, HTTP2-Settings Upgrade: h2c HTTP2-Settings: AAMAAABkAAQAAP__ Accept: */* User-Agent: nghttp2/1.3.4 [ 0.001] HTTP Upgrade response HTTP/1.1 302 Found Date: Fri, 16 Oct 2015 09:21:42 GMT Server: Apache X-Frame-Options: SAMEORIGIN X-Xss-Protection: 1; mode=block X-Content-Type-Options: nosniff Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://*.freebsd-admin.com; connect-src 'self' https://*.freebsd-admin.com; img-src 'self' https://*.freebsd-admin.com; style-src 'unsafe-inline' 'self' https://*.freebsd-admin.com; block-all-mixed-content; X-Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://*.freebsd-admin.com; connect-src 'self' https://*.freebsd-admin.com; img-src 'self' https://*.freebsd-admin.com; style-src 'self' 'unsafe-inline' https://*.freebsd-admin.com; block-all-mixed-content; Location: https://freebsd-admin.com/ Content-Length: 210 Content-Type: text/html; charset=iso-8859-1 302 Found

Found

The document has moved here.

[ERROR] HTTP Upgrade failed Some requests were not processed. total=1, processed=0" Finally I also set logging to http2:debug but I dont see anything that indicates an error. "[Fri Oct 16 10:06:01.060039 2015] [http2:info] [pid 19537:tid 34410099712] mod_http2 (v1.0.0, nghttp2 1.3.4), initializing... [Fri Oct 16 10:06:01.060051 2015] [http2:debug] [pid 19537:tid 34410099712] h2_h2.c(72): h2_h2, child_init [Fri Oct 16 10:06:01.060059 2015] [http2:debug] [pid 19537:tid 34410099712] h2_switch.c(54): h2_switch init [Fri Oct 16 10:06:01.060287 2015] [lbmethod_heartbeat:notice] [pid 19537:tid 34410099712] AH02282: No slotmem from mod_heartmonitor [Fri Oct 16 10:06:02.001571 2015] [mpm_event:notice] [pid 19537:tid 34410099712] AH00489: Apache/2.4.17 (Unix) OpenSSL/1.0.2d configured -- resuming normal operations [Fri Oct 16 10:06:02.001600 2015] [core:notice] [pid 19537:tid 34410099712] AH00094: Command line: '/usr/sbin/httpd -D SSL' [Fri Oct 16 10:06:02.001697 2015] [http2:debug] [pid 19678:tid 34410099712] h2_conn.c(123): h2_workers: min=32 max=64, mthrpchild=32, thr_limit=64 [Fri Oct 16 10:06:02.001755 2015] [http2:debug] [pid 19678:tid 34410099712] h2_workers.c(227): h2_workers: starting [Fri Oct 16 10:06:02.002007 2015] [http2:debug] [pid 19727:tid 34410099712] h2_conn.c(123): h2_workers: min=32 max=64, mthrpchild=32, thr_limit=64 [Fri Oct 16 10:06:02.002062 2015] [http2:debug] [pid 19727:tid 34410099712] h2_workers.c(227): h2_workers: starting" Hope this helps. On 16 October 2015 at 10:14, Stefan Eissing wrote: > Chris, > > I wrote some advice at https://icing.github.io/mod_h2/howto.html already. > > There are several checks described. Which one fails for you and how? I need > the output of the step that differs from the advice. Just a verbal description > is not enough. Thx. > > //Stefan > >> Am 16.10.2015 um 11:00 schrieb Chris : >> >> Hi guys. >> >> Was excited to see the module got added to 2.4.17 but I cannot get it >> to work in my testing following information from this url. >> https://icing.github.io/mod_h2/howto.html#http >> >> So what is confirmed working? >> >> I compiled apache with the appropriate configure flag. >> >> I can confirm in the error log the module loads. >> >> However the protocols directive seems to be ignored, testing with both >> curl and nghttp2, confirm only http 1.1. is used. I have tried using >> invalid syntax on the protocols directive to cause an error but the >> server starts anyway without error as if it ignores the value, I have >> tried the value in both the server config and vhost which has no >> affect. >> >> Any ideas? >> >> I have been testing on both http and https and both stuck on http 1.1. >> >> Chris >