in Mongrel, CampingHandler defaults the DirHandler to "/". i was
assigning X-Sendfile an absolute path. as a result an extra c:/ was
getting tacked on to the path inside Mongrel''s DirHandler. that made
the path path look like c:/c:/path/file.png. Hence the 404.
On 4/23/07, Jeremy Burks <jeremy.burks at gmail.com>
wrote:> i wrote a little camping app which serves the css, js and images
> statically using the Static class example i found on the camping wiki.
> everything works perfectly on my mac. once on windows the static files
> don''t get served. a 404 is returned.
>
> i have tried running the app using camping, webrick and mongrel, all
> give the same 404 response.
>
> here is an example value of X-Sendfile. I have verified that the path
> does exist.
> C:/work/camping_app/public/images/icons/feed.png
>
> does anyone have an idea on what i am missing?
>
> Thanks.
>