a2vhsite

An interactive CLI for creating Apache2's virtual host files.


Keywords
apache2, virtualhost, apache, cli, host, virtual, nodejs, virtual-hosts, vorpal
License
MIT
Install
npm install a2vhsite@1.0.0

Documentation

a2vhsite

npm version Travis dependencies: vorpal | mkdirp | chalk license

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

  1. Install a2vhsite, preferably globally
  2. Run a2vhsite create help to see all the available options
  3. 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