[Mono-dev] xsp + jpeg's

Joe Audette joe_audette at yahoo.com
Thu Dec 8 08:40:52 EST 2005

I don't use xsp by itself but with mod_mono so this
may not help if you are using xsp by itself but the
technique I use is to make mono the handler for the
directory using SetHandler but over-ride that for
certain file types using a FilesMatch directive and
setting the handler for these file types to None so
that apache is responsible for serving them. You can
see the syntax in the example Virtual Host file I
posted in my blog.

Hope it helps,


--- Mark Gallop <mark.gallop at gmail.com> wrote:

> Hello All,
> I am trying to display jpeg images using xsp and
> mono 1.1.10 (I have
> also tried previous versions) unfortuneately it only
> works if the file
> extension is "jpeg". If it is "jpg" the browser
> wants to download, not
> display. 
> This only occurs when loading the image on its own,
> eg
> Other file types,
> like txt/mov/avi,
> display correctly.
> Is this a issue with mime types? Any help would be
> appreciated.
> Cheers,
> Mark
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com

joe_audette [at] yahoo dotcom

More information about the Mono-devel-list mailing list