Skip to content

Commit 73e4176

Browse files
committed
Resolve nginx static file bug
http://smotko.si/nginx-static-file-problem/ describes this problem and the Vagrant docs also support the idea that nginx has a bug when used with Virtualbox. Disabling sendfile prevents this from being an issue.
1 parent 5936eea commit 73e4176

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nginx-site.conf

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ server {
2626

2727
# Make site accessible from http://localhost/
2828
server_name localhost;
29+
30+
sendfile off; # as per https://docs.vagrantup.com/v2/synced-folders/virtualbox.html
2931

3032
location / {
3133
# First attempt to serve request as file, then

0 commit comments

Comments
 (0)