This question has been answered by handjes. See the first response.
/* Initialize the default 'web' context */
// Comment the default web context initialization:
//$modx->initialize('web');
/* setup for multiple domains */
switch(strtolower(MODX_HTTP_HOST)) {
/* setup for multiple domains */
switch(strtolower(MODX_HTTP_HOST)) {
case 'www.firstdomain.nl :80':
case 'www.firstdomain.nl :443':
case 'www.firstdomain.nl':
// if the http_host is www.firstdomain.nl, load the second domain web context
$modx->initialize('first domain context');
break;
case 'www.seconddomain.nl :80':
case 'www.seconddomain.nl :443':
case 'www.seconddomain.nl':
// if the http_host is www.seconddomain.nl, load the second domain web context
$modx->initialize('second domain context');
break;
default:
// by default / if no other rule can be applied, load web context
$modx->initialize('web');
break;
}
/* execute the request handler */
if (!MODX_API_MODE) {
$modx->handleRequest();
}
<VirtualHost *:443>
ServerName cater.nl
ServerAlias www.cater.nl
#
# Disable aliases from system config
Alias / <path to cater's context directory>
# debug, info, notice, warn, error, crit, alert, emerg
LogLevel warn
ErrorLog logs/cater-ssl_error_log
CustomLog logs/cater-ssl_access_log combined
ServerSignature On
ServerAdmin [email protected]
#
# SSL config without comments
#
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/cater.crt
SSLCertificateKeyFile /etc/pki/tls/private/cater.key
SSLCertificateChainFile /etc/pki/tls/certs/InCommon-chain.crt
#
# INTERMEDIATE configuration,
# from: https://wiki.mozilla.org/Security/Server_Side_TLS
#
# IE6 and Java6 clients may have trouble
#
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
SSLHonorCipherOrder on
#SSLCompression off
<Files ~ "\.(cgi|shtml|phtml|pcgi|php|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/home/web/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# not sure I we want this - ASM 2013
# Per-Server Logging:
# The home of a custom SSL log file. Use this when you want a
# compact non-error SSL logfile on a virtual host basis.
#CustomLog logs/ssl_request_log \
# "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
#
# END of SSL config
#
</VirtualHost>
<base href="[[!++site_url]]" />