_examples/caddy/README.md
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/caddy/server1go run main.go$GOPATH/src/github.com/kataras/iris/_examples/caddy/server2go run main.goCaddyfile is located, the $GOPATH/src/github.com/kataras/iris/_examples/caddy in this caseCaddyfile to see by yourself how easy it is to configure the serverscaddy directly or open a terminal window and execute caddyhttps://example.com and https://api.example.com/user/42Iris has the app.Run(iris.AutoTLS(":443", "example.com", "[email protected]")) 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.