From 806ad5e7aa4119b20b345e3d553bad4618a0c0a4 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 3 Jul 2019 01:37:14 +0300 Subject: [PATCH] add the Run part on the subdomains example code --- Routing-subdomains.md | 4 ++++ 1 file changed, 4 insertions(+) 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: