Skip to content

Bash Script to easy create or delete apache virtual hosts on Debian

Notifications You must be signed in to change notification settings

lelinhtinh/virtualhost

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 

Repository files navigation

Virtualhost Manage Script

Bash Script to easy create or delete apache virtual hosts on Debian.

By default, this script will use $HOME/www/ as default starting point, instead of /var/www/ in the original script.

Installation

$ cd /usr/local/bin
$ sudo wget -O virtualhost https://github.com/lelinhtinh/virtualhost/raw/master/virtualhost.sh
$ sudo chmod +x virtualhost

Usage

$ sudo virtualhost [create | delete] [domain]

Examples

Create a new virtual host:

$ sudo virtualhost create mysite.test

Delete a virtual host:

$ sudo virtualhost delete mysite.test

About

Bash Script to easy create or delete apache virtual hosts on Debian

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%