Disable sendfile when using Nginx + Vagrant

Source: http://jeremyfelt.com/code/2013/01/08/clear-nginx-cache-in-vagrant/ Scenario 1… You installed Vagrant with VirtualBox on your local machine and have a sweet nginx setup going as your development environment. You made a few changes to a CSS file and the new style is not reflecting on the page. You try saving the file again in your text editor, no go. You look at the file […]

Nginx + Varnish Wrong Port With Redirects

I recently switched my blog and many of my sites over to a new server stack, with Varnish running in front of Nginx + PHP-FPM. I noticed an issue however. When requesting a path like: http://brandonwamboldt.ca/assets, I was being redirected to http://brandonwamboldt.ca:8000/assets/. This alone took me a few minutes to discover, as the original problem […]