Skip to content

Instantly share code, notes, and snippets.

@DeRain
Forked from falexandrou/sendfile.sh
Created August 3, 2016 16:07
Show Gist options
  • Save DeRain/5cba1a8a7b8d229737de1289cc9dae46 to your computer and use it in GitHub Desktop.
Save DeRain/5cba1a8a7b8d229737de1289cc9dae46 to your computer and use it in GitHub Desktop.
Turn Sendfile to "off" for vagrant boxes
# A VirtualBox bug forces vagrant to serve
# corrupt files via Apache or nginx
# The solution to that would be to turn off
# the SendFile option in apache or nginx
#
# If you use apache as your main web server
# add this directive in your httpd.conf (or apache.conf)
# configuration file name may vary in various systems
#
EnableSendfile off
# If you use nginx as your main web server
# add this directive in your nginx.conf
sendfile off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment