title: The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via for HTTPS
body: <p>Following is the scenario.</p>
  
  <p>We have F5 load balancer and incoming requests comes in to the F5 load balancer as HTTPs and then they are redirected to WCF services server as HTTP. </p>
  
  <p>I have tried almost all possible configuration combinations but it keeps giving two different errors. For example, in light of few suggestions, I have tried changing security mode to 'Transport' then the error changes to as follows: "Could not establish secure channel for SSL/TLS with authority 'xxx.xxx.xxx.xxx:XXXX'."</p>
  
  <h1>Server Configuration:</h1>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="NameofServiceBehaviour" name="NameOfServices"&gt;
          &lt;endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpEndPointBinding" name="wsHttpEndPoint" contract="Name.IContractName" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;bindings&gt;
        &lt;wsHttpBinding&gt;
          &lt;binding name="wsHttpEndPointBinding"&gt;
            &lt;security mode="None"&gt; 
          &lt;!-- &lt;transport clientCredentialType="Certificate" /&gt; --&gt;
        &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/wsHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="ServiceBehaviourName"&gt;
            &lt;serviceMetadata httpGetEnabled="true" /&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
            &lt;!-- &lt;serviceCredentials&gt;
              &lt;serviceCertificate findValue="CN=CertificateName" storeLocation="LocalMachine" /&gt;
            &lt;/serviceCredentials&gt; --&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="false" /&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <h1>Client Configuration:</h1>
  
  <pre><code>&lt;system.serviceModel&gt;
          &lt;bindings&gt;
              &lt;wsHttpBinding&gt;
                  &lt;binding name="wsHttpEndPoint"&gt;
                      &lt;security mode="None" /&gt;
                  &lt;/binding&gt;
              &lt;/wsHttpBinding&gt;
          &lt;/bindings&gt;
          &lt;client&gt;
              &lt;endpoint address="https://URL.svc"
                  binding="wsHttpBinding" bindingConfiguration="wsHttpEndPoint"
                  contract="Name.IContractName" name="wsHttpEndPoint" /&gt;
          &lt;/client&gt;
      &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Regards,
  Nasir</p>