title: nginx proxy config not forwarding requests to backend server
body: <p>Below is the relevant section of my nginx.conf file. 
  I only see the js|css... requests forward to my backend server when i remove the initial location block in the conf file. What im trying to accomplish is to turn off nginx access logging for files of those extensions.  </p>
  
  <p>Anybody know a working nginx config technique to allow me to turn off the access logs yet still forward these requests to the proxy location?  </p>
  
  <pre><code>...   
  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
              access_log   off;
  }
  
  location / {
  
  if ($ignore_ua) {
      access_log off;
      return 200;
  }
  proxy_set_header X-Forwarded-Host $host;
  proxy_set_header X-Forwarded-Server $host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_pass http://127.0.0.1:7777/;
  }
  </code></pre>