title: Nginx finds css but doesn't load it into index.html
body: <p>my nginx server serves an index.html file, which loads a css file and some js files. the css file is loaded (NO 404), but the style doesn't appear.</p>
  
  <p>folders :</p>
  
  <pre><code>/src
      /assets
          /images
              ...
          /sounds
              ...
      /css
          /style.css
      /js
          ...
      index.html
  </code></pre>
  
  <p>sound and images loaded by the js files work perfectly.</p>
  
  <p>/etc/nginx/sites-enabled/default/ :</p>
  
  <pre><code>server {
    listen 8080;
    server_name jumpnrun jumpnrun.vm;
    access_log /var/log/nginx/jumpnrun.access.log;
    error_log /var/log/nginx/jumpnrun.error.log;
  
    location / {
      try_files $uri $uri/index.html;
    }
  
    location ~ ^/(assets/|css/|js/|index.html) {
      root /src;
      index index.html;
      access_log off;
    }
  
    location /socket.io {
      add_header Access-Control-Allow-Origin *;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $host;
      proxy_http_version 1.1;
      proxy_pass http://node-server;
    }
  
  }
  </code></pre>
  
  <p>index.html :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;meta charset="UTF-8" /&gt;
          &lt;title&gt;Jump n' Run&lt;/title&gt;
          &lt;link href="css/style.css" type="text/css" rel="stylesheet" /&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;canvas id="game" width='1000' height='500'&gt;&lt;/canvas&gt;
          &lt;button class="sound"&gt;&lt;/button&gt;
      &lt;/body&gt;
      &lt;!-- JS --&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>if i go to localhost:8080 it gives me the index page but without any styling and the dev tools doesn't show me any errors.</p>
  
  <p>thanks for your help!</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>The whole thing is in a docker container.. Now every time i browse to localhost:8080 nginx dies. error log is somehow not accessible..</p>