[英]Server Error Resource cannot be found 404 when trying to access directory using HTTPS on IIS 8.5 but works using HTTP
I set up a new app in my preexisting Site in IIS (version 8.5) Windows server 2012 R2. 我在IIS(版本8.5)Windows Server 2012 R2中的预先存在的站点中设置了一个新应用程序。 All works fine when accessing the new directory using HTTP but when I try HTTPS it finds the initial directory but if I try to go to any of the registered routes it throws a "HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly".
当使用HTTP访问新目录时,一切正常,但是当我尝试使用HTTPS时,它会找到初始目录,但如果我尝试转到任何已注册的路由,则会抛出“HTTP 404.您要查找的资源(或其中一个)依赖项)可能已被删除,名称已更改,或暂时不可用。请查看以下URL并确保拼写正确“。
I have wasted a lot of time on this issue and am unable to find the issue here. 我在这个问题上浪费了很多时间,我在这里找不到问题。 The bindings on the site work just fine for the rest of the apps.
网站上的绑定对其他应用程序来说效果很好。
I'm thinking that the issue may be in the web.config in the service endpoint but all changes I make don't seem to lead anywhere useful. 我认为问题可能出在服务端点的web.config中,但我所做的所有更改似乎都没有带来任何帮助。
Important to note that what I'm setting up is almost a direct copy of another app running on the same IIS site minus some of the routes and the app pool it is in. 重要的是要注意,我正在设置的几乎是在同一IIS站点上运行的另一个应用程序的直接副本减去它所在的一些路由和应用程序池。
If anyone can offer a path I can take with getting SSL to work for this It would be extremely useful. 如果任何人都可以提供一条路径,我可以采取SSL为此工作它将是非常有用的。
The solution was in the bindingConfiguration that was being used for the endpoint in the web.config had to be changed from security mode="None" => security mode="Transport" 解决方案是在用于web中端点的bindingConfiguration中。必须从安全模式更改=“无”=>安全模式=“传输”
I also needed to update the "mex" binding from binding="mexHttpBinding" => binding="mexHttpsBinding" 我还需要从binding =“mexHttpBinding”=> binding =“mexHttpsBinding”更新“mex”绑定
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.