Skip to content

Instantly share code, notes, and snippets.

@armanm
Created April 1, 2014 12:09
Show Gist options
  • Save armanm/9912653 to your computer and use it in GitHub Desktop.
Save armanm/9912653 to your computer and use it in GitHub Desktop.

Force Nginx to server the latest version of the static file when running in VirtualBox

If this does not work, and you're running nginx on a virtual machine in VirtualBox, it may be sendfile() that is causing the trouble. Simply comment out the sendfile directive or set it to "off". The directive is most likely found in your nginx.conf file.

sendfile off;

@Favorwilliams
Copy link

My Pleasure to write you,
My name is Favor Williams,
My email address is
( Favor24@live.com)
Am interested to know
more about you,
Contact me for my
photo and other
important issue via,

Favor24@live.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment