title: Nginx Rewrite and redirect a URL
body: <p>I am struggling trying to rewrite and redirect a URL. </p>
  
  <p>The external URL is www.mydomain:443/app1. The internal URL is <a href="https://192.168.1.2:8080" rel="nofollow">https://192.168.1.2:8080</a>. Nginx is running on 192.168.1.1. I have tried several things looking at the docs and the forum.  The code below gets me to the device, but the page comes back blank.  I have tried rewrite and redirect with no luck. </p>
  
  <pre><code>location /app1/ {
     if ($request_uri ~* "/app1/(.*)") { 
          proxy_pass  https://192.168.1.122:8080;
     }
  }
  </code></pre>