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:
http://www.emersonlackey.com/article/mamp-with-ssl-https
http://www.webopius.com/content/355/getting-mamp-working-with-ssl-on-os-x
with no luck. I can hit either 127.0.0.1 or localhost with http but both https://localhost and 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.
thanks
------edit start------
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).
httpd.conf
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
ssl.conf
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
<VirtualHost _default_:443>
server.crt