Skip to content

danwdart/autopache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Autopache: Automatically setup Apache vhosts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages