25 May 2010
Get SSL working on MAMP Pro
Here’s what I did to get MAMP Pro working so I could test the HTTPS pages of the site I’m working on.
1) Follow these instructions from Rocket Theme to the letter. I didn’t need to deal with any of the “Possible Issues” section.
2) Go into “/Applications/MAMP/conf/apache/ssl.conf” and add a new vhost within the <IfDefine> blocks at the end of the page. This vhost will mirror the settings of the vhost you would have already setup in MAMP:
<VirtualHost test.dev:443>
DocumentRoot "/Path/to/document/root"
ServerName test.dev
SSLEngine on
SSLCertificateFile /Applications/MAMP/conf/apache/ssl_crt/server.crt
SSLCertificateKeyFile /Applications/MAMP/conf/apache/ssl_key/server.key
<Directory "/Path/to/document/root">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
3) That’s really it. Restart MAMP and you’re good to go.
Comments
Its really helpful.
Thank you.
Thanks, the virtual host tip really helped me out
Rocket Theme instructions seem to be out of date. There is no SSL check box in MAMP Pro 2.0.5. There is no /Applications/MAMP/conf/apache/ssl.conf. The only file that has that ending is in /Applications/MAMP/conf/apache/extra and is called httpd-ssl.conf, and I’m not sure what to do with it. There is no in the bottom of that file.
MAMP PRO made it super simple to add SSL to the website now:
Go to Hosts tab:
Check SSL
Go to SSL tab and add certificate or create your own.
Set your ports to default and your ready to rock and roll!
Best,
Tim
i use MAMP PRO 2.0.5. how to add godaddy SSLCertificateChainFile in mamp pro control panel.
like this command:
———————————-
SSLCertificateChainFile /etc/ssl/certs/gd_bundle.crt