我有一个在Azure应用服务上运行的WCF服务.我想将此WCF限制为几个azure网站,外部IP和一些其他部署.我在我的WCF web.config中使用IPSecurity标记
我的问题是IP限制工作,但我允许访问的azure网站域似乎不起作用.
例如,我有一个带有自定义域名的azure网站abcdef.info.我试图让这个域访问wcf,但它似乎没有工作.下面是我的配置.
<ipSecurity enableReverseDns="true" allowUnlisted="false">
<add ipAddress="127.0.0.1" allowed="true" />
<add ipAddress="xx.xx.xx.xx" allowed="true" /> (IP of azure website i got after nslookup)
<add domainName="azurewebsitedomain.azurewebsites.net" allowed="true" />
<add domainName="abcdef.info" allowed="true" /> (custom domain tied to my azure website)
</ipSecurity>
Run Code Online (Sandbox Code Playgroud)
我假设这里最后3个设置中的一个会将运行到azure网站的wcf客户端列入白名单以访问WCF,但到目前为止还没有.
将不胜感激任何帮助.谢谢.
iis web-config azure azure-app-service-envrmnt azure-web-app-service