title: Getting Actual address in URL instead of Proxy address Url
body: <p>I have done a reverse proxy to web application as <code>example.test.com</code> and actual address is <code>*.*.*.56</code> and it's working fine when I hit <code>example.test.com</code> but when I added Office 365 authentication, I debug through my Java using <code>httpRequest.getRequestURL();</code> command I want proxy address but I am getting the actual address as <code>***.***.0.56</code></p>
  
  <p>I tried to change the URL using Java but no luck </p>
  
  <pre><code>String currentUri = httpRequest.getRequestURL().toString();
  </code></pre>
  
  <p>I need any solution to set up in proxy server to get the proxy address in my current URL. </p>
  
  <p>and i am getting error saying in azure AAD saying but in reverse proxy it is there as example.test.com</p>
  
  <p>{"error_description":"AADSTS70002: Error validating credentials. AADSTS50011: The reply address 'https://*.<em>.</em>.56:8080/abc/' does not match the reply address 'https://example.test.com/' provided when requesting Authorization code.\r\nTrace ID: gddsgc97-5667-6574g-9897h-97536vg688\r\nCorrelation ID: 565gtdf-j7573-087f-9745a-792835t647\r\nTimestamp: 2019-01-14 10:09:54Z","error":"invalid_client"}</p>