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 !

[Bash] ; revision: 20160704 –

Post imported by Google+Blog for WordPress.

23 Responses to “Bulk Apache2 VHOST / Virtual Hosts Setup

Leave a Reply

Subscribe without commenting


SEObox: Web Hosting Murah Unlimited Komik Indonesia Homeschooling Indonesia