Welcome Guest, Not a member yet? Register   Sign In
[SSL+MAMP] Weird behaviour using Virtualhost
#1

[eluser]Clooner[/eluser]
I use MAMP on my development platform and I enabled SSL to quickly test https sites. The weird thing is that only the first and second virtualhost block is honoured and the third points to the location of the second block. So when I type ssl2.example.com I get the contents of /htdocs/ssl1. I did check the log files but no errors or weird behavior here. Any ideas on this?
Code:
<VirtualHost _default_:443>
DocumentRoot "/htdocs"
ServerName localhost:443
ServerAdmin [email protected]
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 [email protected]
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 [email protected]
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>




Theme © iAndrew 2016 - Forum software by © MyBB