title: mod_pagespeed behind elastic load balancer
body: <p>mod_pagespeed rewrites my css links from</p>
  
  <p>link href="/css/file.css" rel="stylesheet" </p>
  
  <p>to something like:</p>
  
  <p>link href="http://example.com/css/file.css.pagespeed.ce.97987.css" rel="stylesheet"</p>
  
  <p>The problem is that if file.css.pagespeed.ce.97987.css hasn't been created in the pagespeed cache by one of the servers behind the load balancer it may not be found.</p>
  
  <p>It does the same thing with .js files and images</p>
  
  <p>Is it possible to access these files on the local server rather than asking the load balancer to serve them?</p>
  
  <p>EDIT:</p>
  
  <p>This has been solved by:</p>
  
  <p>ModPagespeedEnableFilters trim_urls</p>
  
  <p>Which rewrites to</p>
  
  <p>link href="/css/file.css.pagespeed.ce.97987.css" rel="stylesheet"</p>
  
  <p>EDIT 2:</p>
  
  <p>This rewrote the hrefs in the a links and stripped out the base url from those, which isn't good since I want them to redirect to the load balancer</p>