Multi domains, 1 worker

It is possible for a worker to have more than one subdomain (e.g. 1.example.com and 2.example.com) and it be able to tell the difference when handling the request? So domain 1 would say “hallo world”, and domain 2 would respond with “Goodbye world”.
2 Replies
zegevlier
zegevlier11mo ago
Yup. What part of this are you having issues with?
Tin Cap
Tin Cap11mo ago
Yep. You can bind multiple routes to a single worker and you can analyze the request path in your worker.