How to enable SNI in Apache?
Setting up SNI with Apache
Next, in the NameVirtualHost directive list your server's public IP address, *:443, or other port you're using for SSL (see example below). Now restart Apache and access the https site from a browser that supports SNI.
Why my Apache server is not working?
There are several reasons your Apache server might fail to run. Something could be blocking the port it uses; there could be another instance of Apache already running; or there might be an incompatibility with the version of PHP you're using in MAMP.