Skip to content

Instantly share code, notes, and snippets.

@bnovoa
Forked from prof3ssorSt3v3/httpd-conf-edits.txt
Created January 25, 2019 01:08
Show Gist options
  • Save bnovoa/2ac4090baccf9bcf11b9e27e0fc63af3 to your computer and use it in GitHub Desktop.
Save bnovoa/2ac4090baccf9bcf11b9e27e0fc63af3 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment