title: Install apache module X-Sendfile on MAMP
body: <p>How can I install X-Sendfile apache module so that MAMP can use it?</p>
  
  <p>I have followed <a href="http://elivz.com/blog/single/mod_xsendfile/" rel="nofollow">these instructions</a> to install X-Sendfile, but it didn't work (it seems like it just installed it for the default apache installation). I also tried to manually copy <code>/usr/libexec/apache2/mod_xsendfile.so</code> to <code>/Applications/MAMP/Library/modules/</code>, but that produced the following error when restarting Apache:</p>
  
  <p><code>Cannot load /Applications/MAMP/Library/modules/mod_xsendfile.so into server: cannot create object file image or add library</code></p>