How to host many sites on one single VPS...

Result from Web Dev

In this mini guide I will describe how I did to create my own hosting for one main domain and many subdomains using Go as the engine. Only a fraction of this code is Go code. Most coding is done by the "holy trinity" (HTML, CSS and JS).

The total cost of all web sites and this hosting is about $10 each month. And I did it with the only purpose to learn. I have only basic experience of web development, but some SQL experience. Enjoy, shake your head or tell me how I can do better!

To create a static website using Go, you may look at goWebStatic