我想知道为什么以下内容不适用于Iris(v6.2.0):

import (
    "gopkg.in/kataras/iris.v6"
    "gopkg.in/kataras/iris.v6/adaptors/httprouter"
)

func main() {
    app := iris.New()
    app.Adapt(iris.DevLogger())
    app.Adapt(httprouter.New())

    exampleCom := app.Party("example.com")
    {
        exampleCom.Get("/", func(c *iris.Context) {
            c.Writef("hello from example.com")
        })
    }

    app.Get("/", func(c *iris.Context) {
        c.Writef("hello from everywhere else")
    })

    app.Listen(":3000")
}

我在我的主机配置中将example.com指向localhost . 访问 localhost:3000 确实给了我"hello from everywhere else",但访问 example.com:3000 给了我Iris的404页面 .