NameBasedSSLVHostsWithSNI – Httpd Wiki
Posted by jpluimers on 2015/12/02
For my link archive:
# Ensure that Apache listens on port 443
Listen 443
# Listen for virtual host requests on all IP addresses
NameVirtualHost *:443
# Go ahead and accept connections for these vhosts
# from non-SNI clients
SSLStrictSNIVHostCheck off
# Because this virtual host is defined first, it will
# be used as the default if the hostname is not received
# in the SSL handshake, e.g. if the browser doesn't support
# SNI.
DocumentRoot /www/example1
ServerName www.example.com
# Other directives here
DocumentRoot /www/example2
ServerName www.example2.org
# Other directives here
One more time as WordPress screws XML:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ensure that Apache listens on port 443 | |
| Listen 443 | |
| # Listen for virtual host requests on all IP addresses | |
| NameVirtualHost *:443 | |
| # Go ahead and accept connections for these vhosts | |
| # from non-SNI clients | |
| SSLStrictSNIVHostCheck off | |
| <VirtualHost *:443> | |
| # Because this virtual host is defined first, it will | |
| # be used as the default if the hostname is not received | |
| # in the SSL handshake, e.g. if the browser doesn't support | |
| # SNI. | |
| DocumentRoot /www/example1 | |
| ServerName http://www.example.com | |
| # Other directives here | |
| </VirtualHost> | |
| <VirtualHost *:443> | |
| DocumentRoot /www/example2 | |
| ServerName http://www.example2.org | |
| # Other directives here | |
| </VirtualHost> |
–jeroen
Source: NameBasedSSLVHostsWithSNI – Httpd Wiki






Leave a comment