Switch branches/tags
Find file History
Pull request Compare This branch is even with v0.12.x.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
app
config
i18n
static
views
.gitignore
README.md
aah.project
go.mod

README.md

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 aah-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.

127.0.0.1       sample.com admin.sample.com username1.sample.com username2.sample.com username3.sample.com

Run this example

cd aah-examples/domain-subdomain
aah run

Visit these URLs