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.

24 thoughts on “Bulk Apache2 VHOST / Virtual Hosts Setup

  1. thank you for the information is be very useful.

    Come join us and get the big prize that awaits you, do not miss a great bonus that awaits you only in daftarbet303.com

  2. DEWADOMINOQQ adalah situs online terbesar dan terpercaya di Indonesia.
    Ayo Segera Bergabung Disini!
    * Bonus Turnover 0.5%
    * Bonus Referral 20%
    * Dan masih banyak lagi bonus yang menanti

    Hanya dengan minimal deposit dan withdraw Rp. 15.000,-
    Bos ku sudah bermain didalam nya 1ID dengan 7 Permainan

    Disini kami menyediakan
    * POKER
    * DOMINOQQ
    * ADUQ
    * BANDAR POKER
    * BANDARQ
    * CAPSA SUSUN
    * SAKONG

    Kami juga didukung oleh 6 bank besar di Indonesia:

    BCA, BNI, BRI, MANDIRI, DANAMON dan CIMB Niaga

    BBM : 2B5E9CDB
    What App: +85593827759
    https://goo.gl/5FhgDE

  3. There are some interesting points in time in this article however I don’t know if I see all of them heart to heart. There’s some validity but I’ll take maintain opinion until I look into it further. Good article , thanks and we would like extra! Added to FeedBurner as properly

Leave a Reply

Your email address will not be published. Required fields are marked *