Can't get ServiceStack to work in IIS6 with HTTPS

后端 未结 2 1747
小蘑菇
小蘑菇 2021-02-09 12:37

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

2条回答
  •  别那么骄傲
    2021-02-09 13:03

    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:

    1. Change the servicestack path in Web.Config from '*' to 'servicestack.ashx'

    2. 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:

      1. Right-click a website and select Properties
      2. Select the Home Directory tab
      3. Click the Configuration button
      4. Select the Mappings tab
      5. Click the Insert button (see Figure 4)
      6. Paste the path to the aspnet_isapi.dll into the Executable field (you can copy this path from the script map for .aspx files)
      7. Uncheck the checkbox labeled Verify that file exists
      8. Click the OK button

    IIS 6.0 Wildcard mapping

提交回复
热议问题