Skip to content

A small bash script that lets you manage your apache Virtual Host

License

Notifications You must be signed in to change notification settings

unnikked/Apache-VirtualHost-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

VirtualHost manager for Apache 2.4.7

Since I test various opensource selfhosted apps on my virtual machine I decided to create a small script written in bash that helps me to configure initial settings.

I've tested it on Ubuntu 14.04 LTS, it should work also for earlier version and with different Apache versione, please let me know.

I might update the script for backward and future compatibility.

This release it is only a prototype.

What does the script do?

This script basically lets you create, delete or list all available apache VirtualHost.

Syntax

Usage: vhost-manager -vh [-a ACTION ] [-e EMAIL] [-w DOMAIN_NAME] [-n VHOST_NAME] [-d DIR_NAME] 
	
	-a			create, delete or list
	-e			webmaster email
	-w			domain name (eg example.com)
	-n			name of the virtual host (if not specified it uses
				DOMAIN_NAME)
	-d			directory name of the root directory (if not specified it uses
				VHOST_NAME)
	-v			verbose
	-h			this help		

How to install

Simply clone this repo

git clone https://github.com/unnikked/Apache-VirtualHost-Manager.git

and then add execution permission to the script

chmod +x Apache-VirtualHost-Manager/vhost-manager.sh

I suggest you to add this script either on your bash path envirornment or on your /usr/bin folder

About

A small bash script that lets you manage your apache Virtual Host

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages