I want to do routing for subdomain in one ASP NET Core project. Is it possible? E.g. when I have endpoint /test
, I would to have it at subdomain e.g. https://testing.myapp.com/test
, but not at https://myapp.com/test
. How can I do it, and if it's possible, how to configure the subodamin e.g to require client certificate?
[Host("mtls.*")]
on my action in controller, but now I'm getting 404 error. My goal is to have something like this:https://mtls.localhost:8080/endpoint
. What did I wrong?