I attempted to publish this on serverfault but no luck to date.

I've got a local testing atmosphere inside a Fedora virtual machine. Oddly, assets (css and js files) don't appear to load. Searching at Firebug, I observe that the browser transmits the HTTP request with "Range bytes=-". The server responds with either a clear 200 OK or perhaps an empty 206 Partial Content.

Here's a good example:


    Response Headers

    Date    Mon, 23 November 2009 23:33:26 GMT

    Server  Apache/2.2.13 (Fedora)

    Last-Modified   Thu, 19 November 2009 22:58:55 GMT

    Etag    "18-3aec-478c14dbee138"

    Accept-Ranges   bytes

    Content-Length  15084

    Content-Range   bytes -15083/15084

    Connection  close

    Content-Type    text/css

    Request Headers

    Host    fedora.test

    User-Agent  Mozilla/5. (X11 U Linux i686 en-US rv:1.9.1.5) Gecko/20091105 Fedora/3.5.5-1.fc11 Opera/3.5.5

    Accept  text/css,*/*q=.1

    Accept-Language en-us,enq=.5

    Accept-Encoding gzip,deflate

    Accept-Charset  ISO-8859-1,utf-8q=.7,*q=.7

    Keep-Alive  300

    Connection  keep-alive

    Referer http://fedora.test/pictures/

    Cookie  __utma=26341546.1613992749.1258504422.1258569125.1258752550.4 __utmz=26341546.1258504422.1.1.utmcsr=(direct)utmccn=(direct)utmcmd=(none) PHPSESSID=tqf8jfmc77qihe97rl4tmhq685

    Range   bytes=-

    If-Range    "18-3aec-478c14dbee138"

I'm not sure when the browser is delivering the incorrect request, or maybe it is the server that's carrying this out. Request designed to the outdoors (for example google statistics) will work fine.

This really is running in Fedora 11 in VirtualBox. Apache. PHP. The files are now being offered with the "shared folders" feature of VirtualBox (can it be related?).

First load (index.php):


    Response Headers

    Date    Tue, 24 November 2009 02:40:46 GMT

    Server  Apache/2.2.13 (Fedora)

    X-Powered-By    PHP/5.2.9

    Expires Thu, 19 November 1981 08:52:00 GMT

    Cache-Control   private

    Pragma  no-cache

    Connection  close

    Transfer-Encoding   chunked

    Content-Type    text/html charset=UTF-8

    Request Headers

    Host    fedora.test

    User-Agent  Mozilla/5. (X11 U Linux i686 en-US rv:1.9.1.5) Gecko/20091105 Fedora/3.5.5-1.fc11 Opera/3.5.5

    Accept  text/html,application/xhtml+xml,application/xmlq=.9,*/*q=.8

    Accept-Language en-us,enq=.5

    Accept-Encoding gzip,deflate

    Accept-Charset  ISO-8859-1,utf-8q=.7,*q=.7

    Keep-Alive  300

    Connection  keep-alive

    Cookie  PHPSESSID=ngh2n2co2gjj5kla6kafp85lh3 __utma=26341546.882012300.1259028363.1259028363.1259030442.2 __utmc=26341546 __utmz=26341546.1259028363.1.1.utmcsr=(direct)utmccn=(direct)utmcmd=(none) __utmb=26341546.1.10.1259030442

No error logs may help me.

In my opinion it is really an problem with serving files in shared folders with virtual box. I'd this identical problem and was just in a position to resolve it moving the files to some non-shared directory. One factor you could try could be enabling followsymlinks. Regrettably after i was getting the problem, I could not find other people which was confirming similar issues.