Skip to content

Instantly share code, notes, and snippets.

@nandomoreirame
Created October 31, 2015 04:11
Show Gist options
  • Save nandomoreirame/7129e572dc147c59ae63 to your computer and use it in GitHub Desktop.
Save nandomoreirame/7129e572dc147c59ae63 to your computer and use it in GitHub Desktop.
Bash Script to easy create or delete apache virtual hosts on ubuntu
# Bash Script to easy create or delete apache virtual hosts on ubuntu
# https://github.com/RoverWire/virtualhost
# Instalation
sudo su
cd /usr/local/bin
wget -O virtualhost https://raw.githubusercontent.com/RoverWire/virtualhost/master/virtualhost.sh
chmod +x virtualhost
# Usage
sudo virtualhost create hostname.dev /var/www/laravel/public/
sudo virtualhost delete hostname.dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment