Welcome! Log In Create A New Profile

Advanced

Virtual box

Posted by Denis Obydennykh 
Virtual box
January 08, 2012 05:11PM
I'm using Virtual Box for development purposes. There I have installed LAMP + nginx. The communication between host Windows and virtual machine is made using virtualbox common directories.

Some time ago nginx started working wrong - static files were not updated after changes (i've changed them from windows). If the browser tried to retrieve file throw nginx - it recieved old version (also with some special chars at the end of file). At the same time apache was working normal, vim and other programs inside virtualbox were showing right version of file.

The problem was solved by changing virtual machine disk controller from sata to ide. Most of all that seems to be VirtualBox bug. But at the sme time nginx was the only affected program. May be you could change the world to be better? :)

In any case, thank you for such a great program like nginx and for sharing it for free. :)

P.S. The problem is described here with logs and some other details http://habrahabr.ru/qa/15139/#reply (in russian).



Edited 1 time(s). Last edit at 01/08/2012 05:12PM by Denis Obydennykh.
Re: Virtual box
January 08, 2012 05:31PM
IDE solved the problem only for some time.

Seems that stat return wrong timestamp of last modification. And nginx thinks that file didn't changed.

2012/01/08 21:56:11 [debug] 2317#0: *3 http ims:1326045022 lm:1326045022

Is there any way always to read && send version of file from disk? thats bad, but can be acceptable for development virtual system.
Re: Virtual box
January 08, 2012 05:59PM
The problem was solved by "sendfile off"; :)
Re: Virtual box
March 16, 2012 06:53AM
glad to hear it is solved



Interested in [url=http://video.yahoo.com/watch/4208821/11313943/]Pasadena Roofing[/url]
Re: Virtual box
May 11, 2012 02:27PM
Fyi, VBox shared folders are not designed for active file changes, its a poor man's file sharing method, use a real Samba share if you want to do things with active file changes.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready