代码拉取完成,页面将自动刷新
The Caddyfile
shows how you can use caddy to listen on ports 80 & 443 and sit in front of iris webserver(s) that serving on a different port (9091 and 9092 in this case; see Caddyfile).
$GOPATH/src/github.com/kataras/iris/_examples/tutorial/caddy/server1
go run main.go
$GOPATH/src/github.com/kataras/iris/_examples/tutorial/caddy/server2
go run main.go
Caddyfile
is located, the $GOPATH/src/github.com/kataras/iris/_examples/tutorial/caddy
in this caseCaddyfile
to see by yourself how easy it is to configure the serverscaddy
directly or open a terminal window and execute caddy
https://example.com
and https://api.example.com/user/42
Iris has the app.Run(iris.AutoTLS(":443", "example.com", "mail@example.com"))
which does
the exactly same thing but caddy is a great tool that helps you when you run multiple web servers from one host machine, i.e iris, apache, tomcat.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。