mccalltd / AttributeRouting

Define your routes using attributes on actions in ASP.NET MVC and Web API.
http://mccalltd.github.io/AttributeRouting/
MIT License
416 stars 89 forks source link

Self Hosting does not work if base url contains path after port number #241

Closed despertargz closed 11 years ago

despertargz commented 11 years ago

HttpSelfHostConfiguration config = new HttpSelfHostConfiguration("http://localhost:8080") will work as expected, but if HttpSelfHostConfiguration config = new HttpSelfHostConfiguration("http://localhost:8080/root") is used then then all controllers return a 404.

Being able to append a path after the port is important because it allows you to host multiple services / applications on the same port number. Otherwise only a single application can bind to each port.

CaptainCodeman commented 11 years ago

Nothing to add other than I've had the same issue.