title: Wordpress & Nginx with Docker: Static files not loaded
body: <p>I'm using Docker to serve my simple WordPress website. A nginx container and a wordpress container. Simple setup:</p>
  
  <pre><code>upstream wordpress_english {
    server wordpress_en:80;
  }
  
  server {
    listen 80;
    server_name my_domain.com www.my_domain.com;
  
    location / {
          proxy_pass http://wordpress_english;
      }
  }
  </code></pre>
  
  <p><strong>Problem:</strong> Static files (css, js and images) are not loaded. </p>
  
  <p>The output from the browser console shows a 404:</p>
  
  <pre><code>http://wordpress_english/wp-content/themes/twentyfifteen/genericons/genericons.css?ver=3.2
  </code></pre>
  
  <p>Its easy to spot the problem: The browser looks for the static files at wordpress_english (the nginx upstream name), instead of <code>my_domain.com</code></p>
  
  <p>How can I fix this problem?</p>