WCF超级郁闷的问题
我将WCF宿主到Windows 服务中(并不是IIS)
服务器有一IP(202.98.96.68),多域名(my.cn 和my.com)
配置文件如下
    <system.serviceModel>
        <services>           
            <service name="zDit.ErrorSystem.Service.Server" behaviorConfiguration="ServerBehaviorConfiguration">               
                <endpoint address="" binding="basicHttpBinding" bindingConfiguration="HttpBind" contract="zDit.ErrorSystem.Core.IServer"></endpoint>
                <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
                <host>               
                    <baseAddresses>
                        <add baseAddress="http://test.my.cn"/>                       
                    </baseAddresses>
                </host>
            </service>           
        </services>       
        <behaviors>
            <serviceBehaviors>
                <behavior name="ServerBehaviorConfiguration">                   
                    <serviceMetadata httpGetEnabled="true" />                  
                </behavior>
            </serviceBehaviors>
        </behaviors>
        <bindings>
            <basicHttpBinding>
                <binding name="HttpBind"></binding>
            </basicHttpBinding>
        </bindings>       
    </system.serviceModel>
这样服务一启动,所有请求(*.my.cn 和 *.my.com)到交给了这个服务。超级郁闷,目前他没有找到解决方案。
不知WCF如何配置解决在同一服务器上单IP,多域名的问题!哪位朋友做过类似问题,请指点
posted on 2008-10-09 09:13  rosanshao  阅读(713)  评论(4编辑  收藏  举报