- #Alternative to mamp for mac how to
- #Alternative to mamp for mac install
- #Alternative to mamp for mac code
- #Alternative to mamp for mac series
XSendFilePath "/Applications/MAMP/htdocs/MyShinyWebsite"
#Alternative to mamp for mac code
Paste the code below in your `nf`, change the DocumentRoot to reflect your path, ServerName and paths to your SSLCertificateFile and others NameVirtualHost *:443ĭocumentRoot "/Applications/MAMP/htdocs/MyShinyWebsite" Open /Applications/MAMP/conf/apache/nf and add this line near the bottom Includes directives, don’t forget to use your correct directory path to your MAMP installation Include /Applications/MAMP/conf/apache/extra/nf Remove or comment out the default virtual host found in this fileĬreate a new file nf in /Applications/MAMP/conf/apache/extra nano nf Then, open nano /Applications/MAMP/conf/apache/extra/nf `Include /Applications/MAMP/conf/apache/extra/nf` # Include /Applications/MAMP/conf/apache/extra/nf In MAMP, find your nf file, usually under your Applications directoryįrom terminal use your fav text editor vi or nano nano /Applications/MAMP/conf/apache/nf
It is important you select the trust option, so you don’t have to go through the pain of having to be prompted to trust the certificate every time its requested. By selecting the trust option, our certificate created using our CA Authorithy will always be trusted. Open the Keychain Access tool from your Applications and drag the `myssl-authority.pem` file into the certificates windowĭouble click on the certificate `myshinywebsite.wp` and then click the Trust arrow to show the options, then select “Always Trust” option. Now, we need to add these files to our Apple Keychain. out myshinywebsite.wp.crt -days 1825 -sha256 -extfile myshinywebsite.wp.ext KeyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEnciphermentįinally, Lets create our certificate using this command openssl x509 -req -in myshinywebsite.wp.csr -CA myssl-authority.pem -CAkey myssl-authority.key -CAcreateserial \ Our new certificate has to include the Subject Alternative Name ( SAN) to prevent certificate errors as new browsers distrust certificates without the SAN. You can create multiple alias here such as DNS.2 = We will add our DNS entries in this file.
We can now create a file `nano myshinywebsite.wp.ext`.
#Alternative to mamp for mac install
Install the Certificate Authorithy openssl genrsa -out myshinywebsite.wp.key 2048Ĭreate a CA Signed Certificate openssl req -new -key myshinywebsite.wp.key -out myshinywebsite.wp.csr You will be prompted for a passphrase, it is recommended you add it, however, it is not required openssl genrsa -des3 -out myssl-authority.key 2048Įstablish your Certificate Authorithy, it will prompt you for some information like country, state, e.t.c openssl req -x509 -new -nodes -key myssl-authority.key -sha256 -days 1825 -out myssl-authority.pem Next, lets generate a Certificate Authorithy key Ensure you use your own Directory paths /User/YOUR_NAME/.įrom your preferred home directory create a folder `ssl` mkdir ssl & cd ssl Note: myshinywebsite.wp should be substituted for your own domain name. testing or anything suitable extension apart from `.dev`. īackup your MAMP config files, so you can revert changes.Īdd this line to to the file 127.0.0.1 myshinywebsite.wp
#Alternative to mamp for mac series
There are a series of steps to follow, however, your environment or situation might be unique, but this should be helpful if you want multiple virtual hosts for wordpress or non wordpress sites. You can also apply similar techniques to LAMP.
This tutorial aims to point you in the right direction in enabling you use https on your localhost server for MAMP. Setting up SSL in your MAMP development environment can be a pain sometimes.
#Alternative to mamp for mac how to
How to add SSL to MAMP for development environment.