with MidgardFavorFiles set to On. I get [Mon Dec 17 03:56:02 2001] [debug] mod_midgard.c(826): [client 140.146.127.11] Midgard: file exists (/web/sites/hitlist.com/images/fpbio.jpg), not serving from database
with it Off I get : [Mon Dec 17 03:59:15 2001] [debug] mod_midgard.c(851): [client] midgard_translate_handler(latin1, http://www.hitlist.com:80/images/fpnews.jpg) but the image is not visible . And after further investigation I found that the images are coming down as html text: wget http://www.hitlist.com:80/images/fpvideo.jpg --04:03:56-- http://www.hitlist.com/images/fpvideo.jpg => `fpvideo.jpg' Connecting to www.hitlist.com:80... connected! HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] 0K .......... ........ @ 268.85 KB/s 04:03:56 (268.85 KB/s) - `fpvideo.jpg' saved [18996] When I look at the htmlized jpeg, I see that it is the text of the root page with a style applied. Could it be that midgard is applying a style to outgoing images converting them to text? The root page is NOT active btw. Emiliano wrote: > Vincent Stoessel wrote: > > >>Before I upgraded to midgard 1.4.2+preparser >>the default behavior was for midgard to look for the >>requested page in the midgard db then pass the URI it to apache >>if it was not found there. >>I understand that we now have MidgardFavorFiles (on|off) >> > > Yes, with the default behaviour being to favor database matches over > files. > > >>that we can use to adjust that behavior. I am now running into a >>strange problem. I am using Midgard as an overlay to an existing >>php site. As I port this large site to pure midgard, I have taken comfort >>in the fact that my old php files that have no equivelant in midgard >>will be sent to the browser. But that is not happening anymore. >>If I set MidgardFavorFiles On >>then all I see is my old php pages, no midgard pages at all. >>If I set MidgardFavorFiles Off >>then I see my midgard pages but not my php pages on the local >>filesystem , nor am I able to view non-html files like gif and jpegs. >> > > Do you use active pages? Set LogLevel to Debug, midgard will show why it > is favoring files or DB requests in the apache error log. > > Emile > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Vincent Stoessel [EMAIL PROTECTED] Java Linux Apache Mysql Php (JLAMP) Engineer (301) 362-1750 Mobile (410) 419-8588 AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
