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.
$ cd /usr/local/bin
$ sudo wget -O virtualhost https://github.com/lelinhtinh/virtualhost/raw/master/virtualhost.sh
$ sudo chmod +x virtualhost
$ sudo virtualhost [create | delete] [domain]
Create a new virtual host:
$ sudo virtualhost create mysite.test
Delete a virtual host:
$ sudo virtualhost delete mysite.test