title: WCF with custombinding on both http and https
body: <p>I have a WCF service with custombinding and it is working fine on either http or https. But I have totally no idea about how can I make it available on both http and https?</p>
  
  <p>Also is it possible to do that?</p>
  
  <p>Here's my configuration in web.config.</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/&gt;
  &lt;behaviors&gt;
      &lt;serviceBehaviors&gt;
          &lt;behavior name=""&gt;
              &lt;serviceMetadata httpsGetEnabled="true" /&gt;                    
              &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
          &lt;/behavior&gt;         
      &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;bindings&gt;
      &lt;customBinding&gt;                     
          &lt;binding name="customBinding0"&gt;
            &lt;binaryMessageEncoding /&gt;
            &lt;httpsTransport /&gt;
          &lt;/binding&gt;
      &lt;/customBinding&gt;
  &lt;/bindings&gt;
  &lt;services&gt;
      &lt;service name="MyWCFService"&gt;                           
          &lt;endpoint address="" binding="customBinding" bindingConfiguration="customBinding0"
              contract="MyWCFService" /&gt;
          &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /&gt;
      &lt;/service&gt;      
  &lt;/services&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks</p>