Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1638

Configuring MAMP for SSL - Free edition

$
0
0

I'm trying to configure MAMP 4.5 for SSL.The goal is to build a self-hosting serveur with a SSL certificate delivered by GeoTrust.The provider send me to files (.key and .cer).I try to tell apache web server to use these files.For that I modified 2 files :/Applications/MAMP/conf/apache/httpd.confand /Applications/MAMP/conf/apache/extra/httpd-ssl.conf

In the httpd.conf file,I remove the # in front of httpd-ssl.conf.

# Secure (SSL/TLS) connectionsInclude /Applications/MAMP/conf/apache/extra/httpd-ssl.conf

I uncomment IfDefine SSL to make sure LoadModule is executed

<IfDefine SSL>        LoadModule ssl_module modules/mod_ssl.so</IfDefine>

Then, in the httpd-ssl.conf file,I replace with <VirtualHost *:443>.

Then I replace

 DocumentRoot "/Applications/MAMP/Library/htdocs"    ServerName www.example.com:443    ServerAdmin you@example.com    ErrorLog "/Applications/MAMP/Library/logs/error_log"    TransferLog "/Applications/MAMP/Library/logs/access_log"

With

DocumentRoot "/Applications/MAMP/htdocs"ServerName localhost:443ServerAdmin you@example.comErrorLog "/Applications/MAMP/logs/error_log"TransferLog "/Applications/MAMP/logs/access_log"

I customize the path of the certificat and the path of the key

SSLCertificateFile /Applications/MAMP/conf/ssl/server.cerSSLCertificateKeyFile /Applications/MAMP/conf/ssl/server.key

I comment out IfDefine SSL and closing tag to enable Listen 443

I save and close the two file and try to Start my MAMP server.

But MAMP never start ! I try to find an error on the log file. But no error appear ! I'm really disappointed.

I hove you could help me.

Best regards.


Viewing all articles
Browse latest Browse all 1638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>