title: NGINX Reverse Proxy redirecting instead of proxying
body: <p>i have a NGINX server running as a reverse proxy. Proxy works for windows hosts however i have a owncloud server and the proxy will instead re wright the url to the internal host name or IP address. ex(I type cloud.example.com and my url bar will change to 10.1.1.19 which is unresolvable over wan</p>
  
  <p>i have checked DNS records and made sure NGINX can resolve host name. also tried just forwarding http traffic to cloud server to make sure using domain name was not the issue.</p>
  
  <pre><code>server {
    listen 80;
    listen [::]:80;
  
    server_name example.com;
  
    location / {
        proxy_pass http://10.1.1.16:80/;
    }
  }
  
  server {
    listen 80;
    listen [::]:80;
  
    server_name cloud.example.com;
  
    location / {
        proxy_pass http://10.1.1.19:80/;
    }
  }
  
  server {
    listen 80;
    listen [::]:80;
  
    server_name remote.example.com;
  
    location / {
        proxy_pass http://10.1.1.17:80/;
    }
  }
  </code></pre>
  
  <p>i just need NGINX to run as a proxy for "cloud.example.com" instead of rewriting URL</p>