I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
- Go to http://www.startssl.com/
- Click on 'Control Panel'
I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
UseCanonicalName Off | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerAlias *.example.com | |
VirtualDocumentRoot /var/www/%1/public | |
DirectoryIndex index.php index.htm index.html | |
<Directory /var/www/*/public/> | |
AllowOverride All | |
</Directory> |
#!/usr/bin/env bash | |
# print usage | |
DOMAIN=$1 | |
if [ -z "$1" ]; then | |
echo "USAGE: $0 tld" | |
echo "" | |
echo "This will generate a non-secure self-signed wildcard certificate for " | |
echo "a given development tld." | |
echo "This should only be used in a development environment." |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
#!/bin/bash | |
read -p "Enter the domain name: " domainname | |
read -p "Enter the domain e.g. local not .local: " domain | |
read -p "Enter country for csr:" country | |
read -p "Enter county for csr:" county | |
read -p "Enter city for csr:" city | |
read -p "Enter company name for csr:" company | |
read -p "Enter department for csr e.g IT:" department | |
read -p "Enter password for certificate greater than 5 characters:" PASS | |
read -p "Enter howmany years for the certificate to last:" certyears |
First of all you need to be able to run MAMP in port 80. This is a "heat check" if you don't have any process jamming http ports. You can check it like this:
sudo lsof | grep LISTEN
If you do happen to have any process with something like this *:http (LISTEN)
, you are in trouble. Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand)
ps <pid of that process>
If you don't see MAMP, you are in good hands, I have just the thing for you:
Artisan | |
// Displays help for a given command | |
php artisan --help OR -h | |
// Do not output any message | |
php artisan --quiet OR -q | |
// Display this application version | |
php artisan --version OR -V | |
// Do not ask any interactive question | |
php artisan --no-interaction OR -n | |
// Force ANSI output |
$ brew install dnsmasq
...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
/usr/local/etc/dnsmasq.conf
address=/local/127.0.0.1
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Copy the daemon configuration file into place.
$ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist