Translate this page :

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

[Bash] bulk-create-apache2-vhosts.sh ; revision: 20160704 – Pastebin.com

Post imported by Google+Blog for WordPress.

22 Responses to “Bulk Apache2 VHOST / Virtual Hosts Setup

Leave a Reply

 

Subscribe without commenting

            








SEObox: Web Hosting Murah Unlimited Komik Indonesia Homeschooling Indonesia