The right way to handle this is to set and specify the host header in IIS for the website instance. Now, suppose you have only one host header applied to the website instance, which should be all you need. However, if you have several host configurations configured, you will also need to explicitly specify the WCF on which the host will expose itself through. This is done using the configuration item below the item to bind the service to this particular domain.
source share