diff --git a/Routing-subdomains.md b/Routing-subdomains.md index 2fc2424..b7ba46a 100644 --- a/Routing-subdomains.md +++ b/Routing-subdomains.md @@ -41,6 +41,10 @@ admin.Get("/", func(ctx iris.Context) { admin.Get("/hey", func(ctx iris.Context) { ctx.Writef("HEY FROM admin.mydomain.com/hey") }) + +// [other routes here...] + +app.Run(iris.Addr("mydomain.com:80")) ``` For local development you'll have to edit your hosts, for example in windows operating system open the `C:\Windows\System32\Drivers\etc\hosts` file and append: