Apache: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
== Virtual hosting - SSL/SNI == | == Virtual hosting - SSL/SNI == | ||
First we disable the SSL_DEFAULT_VHOST if it's enabled by removing -D SSL_DEFAULT_VHOST from /etc/conf.d/apache2. | |||
{{File|/etc/ | {{File|/etc/conf.d/apache2| | ||
<pre> | <pre> | ||
-APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5" | |||
+APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D LANGUAGE -D PHP5" | |||
</pre> | </pre> | ||
}} | }} | ||
Revision as of 15:30, 28 November 2012
This Apache setup explains how to configure Apache 2.4 with the mpm-itk worker so we can have different users for our virtual hosts. Further we want to have a few SSL based virtual hosts on one IP for which we NEED a wildcard certificate if we want to support legacy operating system clients (Windows XP) which don't support SNI and some other SSL sites on different IP adresses, each with their own virtualhost and certificate.
Virtual hosting - HTTP
Virtual hosting - SSL/SNI
First we disable the SSL_DEFAULT_VHOST if it's enabled by removing -D SSL_DEFAULT_VHOST from /etc/conf.d/apache2.
File: /etc/conf.d/apache2
-APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5" +APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D LANGUAGE -D PHP5"