a2vhsite
Description
An interactive CLI for creating Apache2's virtual host files.
Decrease frustration with server management, use an interactive walkthrough of common directives; a template for advanced configurations; or command line arguments to control your Apache2 VirtualHost .conf files! Learn more about the individual directives here and here.
Prerequisites
- Node.js - recent version required for some ES6 features
- Apache2 - if reloading and enabling
Installation
From npm
$ npm install a2vhsite -g
From source
$ git clone https://github.com/danielhickman/a2vhsite
$ cd a2vhsite/
$ npm install -g
Usage
- Install a2vhsite, preferably globally
- Run
a2vhsite create help
to see all the available options - Run the program either from the command line or enter its interface by not adding any arguments
Examples
# Use from the command line interactively
$ a2vhsite create example.com example.org
# Make instances of a template
$ a2vhsite create --template ./template.conf --output ./ example.com example.org
# Use as an interactive command line interface
$ a2vhsite
a2vhsite: create
"Welcome to interactive mode! This will walk you through some common settings.
If you find this isn't advanced enough for you, try template mode! Some helpful
information for you: false indicates the directive won't be set, the parentheses
include helpful defaults you can use by not entering anything, and you can use
{domain} to have your domain replace automatically."
Domains to use (separated by spaces): example.com example.org
[...]
License
Copyright Daniel Hickman, MIT License