title: WCF provide incorrect urls in wsdl behind a load balancer
body: <p>i've a wcf installed on a cluster of web servers behind a load balancer.</p>
  
  <p>The pubblic address is: <a href="http://externaldomain/mywcf.svc" rel="nofollow">http://externaldomain/mywcf.svc</a> and  it is the unique endpoint where the users should access.</p>
  
  <p>So, when i paste this url in the browser to see "the helper page"(the page where it shows me the url of its "wsdl" file) 
  the address isn't as i  expect:  "<a href="http://externaldomain/mywcf.svc?wsdl" rel="nofollow">http://externaldomain/mywcf.svc?wsdl</a>" but "<a href="http://server1/mywcf.svc?wsdl" rel="nofollow">http://server1/mywcf.svc?wsdl</a>" (server1 is the name of the server where the wcf are running on and the user has been routed by the load balancer)</p>
  
  <p>this make impossible to add the services to visualstudio because the suggested address "<a href="http://server1/mywcf.svc=wsdl" rel="nofollow">http://server1/mywcf.svc=wsdl</a>"  is a private url </p>
  
  <p>so, how i should configure the wcf settings to make "aspnet" to generare the helper page with the "correct" address?
  is there some "proxy" node  or something similar to set in the web.config</p>
  
  <pre><code>  #### public url ####           #### private url ####
  
                                  (http://server1)
                                   ----------------
                              --&gt;  -- webserver1 --
                             /     ----------------
                            /
   (http://externaldomain) /
   ---------------------- /
   --- load balancer ---- 
   ---------------------- \
                           \
                            \
                             \     (http://server2)
                              --&gt;  ----------------
                                   -- webserver2 --
                                   ----------------
  </code></pre>