Linked Questions

Popular Questions

Configuring MAMP for SSL

Asked by At

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 or localhost with http but both https://localhost and 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.


------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).


Comment out the ifdef to make sure LoadModule is executed

#<IfDefine SSL>
    LoadModule ssl_module modules/

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

before the existing

<VirtualHost _default_:443>

server.crt and server.key are the newly created ones as per the obove tuts' links.

Comment out

#<IfDefine SSL> 

around line 35 and its closing tag around line 245 to enable the line...

Listen 443

in between, update all certificate references to the newly created files as per the above VirtualHost definition.

Related Questions