a simple python code that can automate the process of creating a virtual host onto your Linux dist. note that i have tested this only on Ubuntu and Ubuntu based distros and i am not concern about redhat and redhat based distros other than Ubuntu, if it helps and if you know how to make it work for the distros other than Ubuntu then please feel free to contribute few lines of code here :)
happy coding
before we start make sure you have Apache configured in your local development platform.
- lets put the avhCreator.py into a directory, open the terminal and lets start.
go to the home directory
cd home/
create a folder named "avhCreator"
sudo mkdir avhCreator
enter into the folder
cd avhCreator/
Download avhCreator.py
sudo curl -o avhCreator.py https://raw.githubusercontent.com/rakibtg/Apache-Virtual-Hosts-Creator/master/avhCreator.py
-
time to play/run the script, can't wait
sudo python avhCreator.py
-
time to talk ;) the script itself is really descriptive so you should get the idea what to do when, if not you can make it better by contributing your code.
Here is a video on how to use it at YouTube Developed by Hasan :)