Bulk Apache2 VHOST / Virtual Hosts Setup. :: Over the years I've created many script to assist me in my work, because I'm lazy a smart guy :) one of those script is this little gem to create hundreds of virtual hosts (vhosts) in Apache2 very quickly.

Just follow these simple steps :

(1) Put the vhost names in a file called vhosts-list.txt, one vhost / domain at each line

(2) Make sure the content of vhost_docroot variable is correct.

(3) Make sure the content of vhost_template variable is correct.

And that's it :) it can even setup the SSL certificates for them :) just make sure the "certbot" line is unremarked.

Have fun !

http://pastebin.com/gkTeHPDN
Shared publiclyView activity