Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gistwebdev
gistwebdev / vhost
Last active February 3, 2023 05:19
Script to create apache2 virtual hosts
#!/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