1.1.3
ktor-server-netty
JDK 10, Mac OS
I have setup subdomain api.example.com, and now i want my application to handle only this URL. What i need to do to setup ktor for this purpose? I'm new to server development, so im sorry if my question is too stupid :))
Use host route builder
routing {
host("api.example.com") {
// REST
}
host("example.com") {
// web
}
}
Please note that for servlet containers it is required to configure a servlet container itself.
Tomcat:
Jetty:
Most helpful comment
Use
hostroute builder