title: How to serve static content in a setup with Nginx -> HAProxy -> Apache?
body: <p>In the below stack setup, where could I serve static content? (going with a CDN is not an option).</p>
  
  <p>I'm not getting in which server should I put them (servers 2 and 3, meaning static requests would go through HAProxy too?) or if static request should be served in the 1st instance (this way static content would be served from Nginx and stored in server1).</p>
  
  <pre><code>Nginx (server 1) - Nginx due to SSL
         \/
  HAProxy (server 1)
     \/         \/
  Server 2   Server 3
  (Apache)   (Apache)
  </code></pre>
  
  <p>Some additional questions:</p>
  
  <ol>
  <li>Nginx and HAProxy should be in different servers?</li>
  <li>Server2 and Server3 should have Nginx on :80, then if static, serve it, if not, proxy to Apache on the same server?</li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/kD9GF.png" alt="Stack"></p>