WCF and Multiple Host Headers

后端 未结 5 2008
甜味超标
甜味超标 2021-02-06 01:51

My employers website has multiple hostnames that all hit the same server and we just show different skins for branding purposes.

Unfortunately WCF doesn\'t seem to work

5条回答
  •  难免孤独
    2021-02-06 02:27

    If you don't put an address in the endpoint then it should resolve to whatever server hits the service. I use this code and it resolves both to my .local address and to my .com address from IIS.

    
        
            
                
                
                
            
        
        
            
                
                    
                    
                    
                    
                
            
        
    
    

提交回复
热议问题