Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Vagrant to run a CentOS VM in order to try and achieve local development parity with our live servers. I've symlinked /var/www/html with the /vagrant shared directory and am forwarding port 80 for viewing at http://localhost:4567. I'm developing using SublimeText 2 on OS X Mountain Lion.

Once I figured that iptables was tripping me up, all was well and good. Until I noticed something strange.

I have a sample HTML page consisting of several paragraphs of lorem copy. I can view this fine in a browser on OS X. But when I make an edit, for example removing a paragraph, and refresh the content is truncated with the paragraph I deleted still visible.

When I cat the files on the server I can see the changes I made but these aren't even reflected when I curl localhost.

I strongly suspect that it's a problem with my Apache settings — with which I didn't really tinker — as the issue doesn't arise when I stop Apache and run sudo python -m SimpleHTTPServer 80 in the directory to view pages instead.

What gives?

share|improve this question
This seemingly only affects HTML files. The exact same file served via PHP doesn't exhibit this issue. Which just confuses me more... – Nev Stokes Jul 17 '13 at 15:50
up vote 4 down vote accepted

We also use OSX, Vagrant and a symlinked setup,we experienced similar issues. The following worked for us, add this to you apache conf.

EnableSendfile off

The solution was found at Hope that helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.