Created
October 13, 2015 07:41
-
-
Save jpluimers/1d7a50fee2429e7a4187 to your computer and use it in GitHub Desktop.
As WordPress fucks up XML: Code fragment from https://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI#Changes_in_configuration_to_use_SNI
This file contains 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 www.example.com | |
# Other directives here | |
</VirtualHost> | |
<VirtualHost *:443> | |
DocumentRoot /www/example2 | |
ServerName www.example2.org | |
# Other directives here | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment