开发者

WCF multiple host headers

I have created a wcf service that i have uploaded to my host (using IIS). Everything works fine. So, if i go to http://www.mydomain.com/path/Service.svc it works fine. If i go to http://mydomain.com/path/Service.svc i get a resource not found error.

I have created a client开发者_开发百科accesspolicy.xml under the path folder which contains the following:

<?xml version="1.0" encoding="utf-8" ?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="SOAPAction">
<domain uri="http://*"/>
<domain uri="http://www.mydomain.com/path/*" />
<domain uri="http://mydomain.com/path/*" />
</allow-from>
<grant-to>
<resource include-subpaths="true" path="/"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>

but it doesnt seem to have any effect. Have looked on the web but didnt find a decent explanation on how this is solved. Any ideas?

Thank you.


You should to add more host headers on IIS. Take a look here: How to Create Multiple Websites with one IP address

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜