Autopache: Automatically setup Apache vhosts
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CHANGELOG
README
autopache.conf
autopache.sh
install.sh

README

Autopache, version 1.3. Written by Dan Dart
License: MIT

Autopache is a tool written in bash to automatically setup Apache vhosts
under Debian-based systems.

To install, run:
$ sudo ./install.sh

To setup a vhost, go to the public directory and run:
$ sudo autopache.sh [vhostname]

This will setup the vhost for you using the template included,
add an entry to your /etc/hosts file and restart Apache.

You can optionally use the following parameters:

$ sudo autopache.sh [vhostname] --delete
Deletes the vhost entry and hosts entry and restart Apache

$ sudo autopache.sh [vhostname] --open
When finished, opens your default browser displaying the new vhost page.

To remove the program without the configuration files, use the following options:
$ sudo autopache.sh --remove # Removes only the program
$ sudo autopache.sh --purge # Removes the program and the configuration file.