I\'m having a problem getting ServiceStack to work with HTTPS in IIS6 and I can\'t seem to find any documentation on setting this up. Currently I have an endpoint setup like so
mythz answer didn't work for me.
I got it working by adding a location tag to web.config with the servicestack configuration. I found that servicestack worked with path="*" - but took to many requests(Episerver) but solved it like this:
<location path="UniqueTag">
<system.web>
<httpHandlers>
<add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" />
</httpHandlers>
</system.web>
</location>
And then prefixed all Routes with the UniqueTag:
[Route("/UniqueTag/DeletePost/{Id}", Verbs = "POST")]
But note that option 2 from mythz's answer might also be required, because it was default setup in our solution.
The problem with IIS 6 is that the IIS 6.0 request pipeline doesn't recognize a path without an ASP.NET extension e.g .aspx doesn't get passed to the ASP.NET isapi hander. So there are generally 2 options for getting this to happen so you can get ServiceStack to run on IIS 6:
Change the servicestack path in Web.Config from '*' to 'servicestack.ashx'
<system.web>
<httpHandlers> <add path="servicestack.ashx" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/> </httpHandlers>
</system.web>
Add a wildcard mapping for your virtual directory to pass all unhandled requests to ASP.NET: Follow these steps to create a wildcard script map with IIS 6.0: