Skip to content

Instantly share code, notes, and snippets.

@prof3ssorSt3v3
Created October 27, 2017 20:21
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save prof3ssorSt3v3/fca5694540283610c5fd1b344ad4b13f to your computer and use it in GitHub Desktop.
Save prof3ssorSt3v3/fca5694540283610c5fd1b344ad4b13f to your computer and use it in GitHub Desktop.
#BACKUP YOUR FILES FIRST
#EDITS FOR httpd.conf
#1. Uncomment these lines
LoadModule ssl_module modules/mod_ssl.so
Include /Applications/MAMP/conf/extra/httpd-ssl.conf
#2. Change ServerName value
ServerName localhost:443
#EDITS FOR httpd-ssl.conf
#3. Uncomment
Listen 443
#4. Edit VirtualHost opening tag
<VirtualHost *:443>
#5. Inside VirtualHost edit these lines
DocumentRoot "/Applications/MAMP/htdocs"
ServerName localhost:443
SSLEngine on
#6. Add/Uncomment/Edit the two certificate lines
SSLCertificateFile "/Users/YOURUSERNAME/ssl/server.crt"
SSLCertificateKeyFile "/Users/YOURUSERNAME/ssl/server.key"
@jmerinoh
Copy link

#7 comment the SSLMutex line (it does not work with MAMP 6).
#SSLMutex "file:/Applications/MAMP/Library/logs/ssl_mutex"

@PNRYates
Copy link

@jmerinoh I don;'t understand what commenting is, can you explain it fully please

@prof3ssorSt3v3
Copy link
Author

Commenting is leaving comments in your code. Writing notes to yourself and other developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment