Skip to content
Branch: master
Find file History
Pull request Compare This branch is 1 commit behind v0.12.x.

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

You can’t perform that action at this time.