Bug 56137

Summary: Change HTTPS connector example (protocol attribute) from "HTTP/1.1" to Http11NioProtocol
Product: Tomcat 8 Reporter: Ognjen Blagojevic <ognjen.d.blagojevic>
Component: ConnectorsAssignee: Tomcat Developers Mailing List <dev>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 8.0.x-trunk   
Target Milestone: ----   
Hardware: All   
OS: All   

Description Ognjen Blagojevic 2014-02-14 11:28:59 UTC
HTTPS example connector in server.xml uses JSSE-specific attributes, but it also uses connector auto-selection using attribute protocol="HTTP/1.1".

If a user follows the "Quick start" section of "SSL Configuration HOW-TO", and previously, or after that installs APR, HTTPS connector won't work. That breaks the principle of least astonishment.


Proposal: in HTTPS example connector, change protocol="HTTP/1.1" to protocol="org.apache.coyote.http11.Http11NioProtocol".

It is not as beautiful as "HTTP/1.1", but it will cause less trouble for novices.

-Ognjen
Comment 1 Mark Thomas 2014-02-17 10:04:11 UTC
Fixed in trunk for 8.0.4 and in 7.0.x for 7.0.53
Comment 2 Ognjen Blagojevic 2014-02-18 09:41:42 UTC
Thank you.