Skip to content

Instantly share code, notes, and snippets.

View plencovich's full-sized avatar

Diego Mariano Plencovich plencovich

View GitHub Profile
@bgallagh3r
bgallagh3r / vhost
Last active April 8, 2018 01:51 — forked from gistwebdev/vhost
Fix for Apache 2.4 (required adding .conf extensions)
#!/bin/bash
#
# Display usage info
vhost-usage() {
cat <<"USAGE"
Usage: vhost [OPTIONS] <name>
-h|--help this screen
-pub to create the webhost root in ~/www/name/public/
-url to specify a local address, default is http://name.local