nginx proxy_pass not serving static files
<p>I have this conf:</p>

<pre><code>server {
   listen 81;
   server_name test.example.com;
   default_type  application/octet-stream;
   auth_basic "Restricted";
   auth_basic_user_file /etc/nginx/.htpasswd;


   location / {
           proxy_pass      http://192.168.0.2:8080/main/;
           include       mime.types;
           proxy_redirect off;
           }
  location /static {
           proxy_pass      http://192.168.0.2:8080/main/;
           include       mime.types;
           proxy_redirect off;
           }
}
</code></pre>

<p>When I load in browser <code>test.example.com</code> I get no static files, no css, no .js</p>

<p>Can you tell me what I'm doing wrong ? </p>