Multi-host

Multi-host works by starting multiple omnisrv instances.

To get started, add host head in root index page.

---
host example.com
---

# Homepage

As a global property, it can be overriden with -host command argument.

omnisrv -host example.site -static shared_assets site

Hint: -host is an alias to -def host=...

After that, the template can make use of the host:

<p>Welcome to {{.Host}}!</p>
{{if eq .Host "example.site"}}<p>.site is yet another TLD.</p>{{end}}