Ok fellow coders, I am trying to configure MAMP with SSL on my mac for development purposes. I have read and tried the following instructions:
with no luck. I can hit either
127.0.0.1 or localhost with http but both
https://127.0.0.1 return host not found error.
looking at phpinfo, i can't see mod_ssl being loaded.
has anyone done this with os x 10.6.7? i have no idea where to go from here.
hope someone can help.
the following are the changes i have made to the config files to get https working. Please follow the tuts listed above to get the certificate/key created and the password removed (as also mentioned by @dallas below).
Comment out the ifdef to make sure LoadModule is executed
#<IfDefine SSL> LoadModule ssl_module modules/mod_ssl.so #</IfDefine>
make sure the following is in the file...
Listen 80 ServerName localhost:80
Add the following ....
<VirtualHost localhost:443> DocumentRoot /Users/myname/Documents/DevProjects/WebdevProjects ServerName localhost SSLEngine on SSLCertificateFile /Applications/MAMP/conf/ssl/server.crt SSLCertificateKeyFile /Applications/MAMP/conf/ssl/server.key </VirtualHost>
before the existing
server.crt and server.key are the newly created ones as per the obove tuts' links.
around line 35 and its closing tag around line 245 to enable the line...
in between, update all certificate references to the newly created files as per the above VirtualHost definition.