- Newest
- Most votes
- Most comments
The issue you're experiencing with Apache 2.4.64 and your AWS Elastic Load Balancer (ELB) is a known problem that has affected many users after upgrading to this Apache version. The error occurs because Apache 2.4.64 introduced stricter Server Name Indication (SNI) checking, which conflicts with how AWS ELBs handle SSL/TLS connections.
While you've already implemented one part of the solution by adding "SSLStrictSNIVHostCheck off" to your virtual hosts, there are additional steps you can take to resolve this issue:
-
Ensure consistent SSL settings across all virtual hosts, including using the same SSL certificate and cipher suite configurations for every virtual host, especially your default one.
-
Add these headers to your Apache configuration to ensure proper protocol information is passed from the ELB to Apache:
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
- Make sure the following Apache modules are enabled:
- mod_ssl
- mod_headers
- Consider updating your SSL protocol configuration:
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384
SSLOptions +StdEnvVars
Regarding HTTP/2, while disabling it in the ELB might help, this setting isn't directly exposed in the ELB console. Your current approach of downgrading to Apache 2.4.62 is a valid temporary solution while you implement the above changes.
AWS hasn't released specific documentation addressing this particular Apache 2.4.64 issue with ELBs yet. However, the community has identified these workarounds that have successfully resolved the problem for many users. If these solutions don't work, continuing with Apache 2.4.62 remains a viable option until either AWS provides official guidance or a future Apache update addresses the compatibility issue.
Sources
Misdirected Request The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection. Apache/2.4.52 | AWS re:Post
answered a year ago
Relevant content
asked 2 years ago
