Shell Script To Configure Nginx Virtual Hosts

So you have a linux server up and running. You have installed all the required packages and ready to go. Then you realize that you have to add 20 virtual host entries to nginx. OMG!

Yeah thats a lot of pain. Hopefully, this little script can save you a lot of time.