[Apache, Vhost, SSL] Virtualhost niet werken met ssl

Pagina: 1
Acties:

  • clooner
  • Registratie: Augustus 2000
  • Laatst online: 18-09-2024
Ik ben bezig met een test opstelling en had het werken. (ssl1.example.com en localhost) draaide al goed via https. Nu wil ik alleen een extra virtualhost toevoegen namelijk ssl2.example.com.

Alleen als ik nu https://ssl2.example.com opvraag krijg ik de inhoud van https://ssl1.example.com te zien. https://ssl1.example.com en https://localhost werken wel gewoon.

dit is mijn virtual host config.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<VirtualHost _default_:443>
DocumentRoot "/htdocs"
ServerName localhost:443
ServerAdmin you@example.com
ErrorLog /Applications/MAMP/logs/ssl_error_log
TransferLog /Applications/MAMP/logs/ssl_access_log
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /Applications/MAMP/conf/apache/ssl_crt/server.crt
SSLCertificateKeyFile /Applications/MAMP/conf/apache/ssl_key/server.key
</VirtualHost>

<VirtualHost ssl1.example.com:443>
DocumentRoot "/htdocs/ssl1"
ServerName ssl1.example.com:443
ServerAdmin you@example.com
ErrorLog /Applications/MAMP/logs/ssl_error_log
TransferLog /Applications/MAMP/logs/ssl_access_log
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /Applications/MAMP/conf/apache/ssl_crt/server.crt
SSLCertificateKeyFile /Applications/MAMP/conf/apache/ssl_key/server.key
</VirtualHost>

<VirtualHost ssl2.example.com:443>
DocumentRoot "/htdocs/ssl2"
ServerName ssl2.example.com:443
ServerAdmin you@example.com
ErrorLog /Applications/MAMP/logs/ssl_error_log
TransferLog /Applications/MAMP/logs/ssl_access_log
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /Applications/MAMP/conf/apache/ssl_crt/server.crt
SSLCertificateKeyFile /Applications/MAMP/conf/apache/ssl_key/server.key
</VirtualHost>


In de log files zie ik geen errors of rare dingen voorbij komen. Wat doe ik verkeerd.

Inside The Matrix, they are everyone, and they are no one.