Switch branches/tags
Nothing to show
Find file History


Example - Domain, Subdomain and Wildcard Subdomain

This example application gives insights on how to use domains, subdomains and wildcard subdomains with aah framework. Reference to Routes Config.

Get aah examples

git clone https://github.com/go-aah/examples.git $GOPATH/src/aahframework.org/examples

Configure local DNS mapping

Firstly, configure hosts file. The purpose is to do local DNS mapping for sample.com. This step is not applicable for production. Typically, these settings happen in domain DNS manager. Learn more about Wildcard DNS - wikipedia

This rackspace article covers the steps to modify-your-hosts-file for Mac, Linux and Windows.       sample.com admin.sample.com username1.sample.com username2.sample.com username3.sample.com

Run this example

aah r -i aahframework.org/examples/domain-subdomain

Visit these URLs