[Mono-list] HttpHandler for *.jpg
Gonzalo Paniagua Javier
gonzalo at ximian.com
Mon Jun 20 04:30:02 EDT 2005
On Mon, 2005-06-20 at 02:53 -0500, Marc DM wrote:
[...]
> http://mysite/images/Beach12/DCS001.JPG?w=200
> to give me the image at the specified url, but proportionately
> resized to 200px wide.
> -----------------APACHE CONFIG---------------------
> ---------------------/etc/apache2/sites-available/mysite----------
[...]
> AddHandler mono .aspx .ascx .jpg
[...]
> -----------------web.config---------------------
> <system.web>
> ...
> ...
> <httpHandlers>
> <add verb="*" path="*.jpg"
> type="Mynamespace.HttpHandlers.ImageHandler,HolmokImageHandler />
> </httpHandlers>
Note that on linux .jpg is not the same as .JPG, while on windows it
is...
Your blah.JPG request is being processed either by apache before passing
it to mod_mono or by the StaticHandler if it gets to mod_mono. That's
why your handler never sees that.
-Gonzalo
More information about the Mono-list
mailing list