[Mono-aspnet-list] HttpHandler to handle all kinds of URL’s in Mono Apache in order to build a REST service

vtortola vtortola at gmail.com
Tue Apr 6 10:28:27 EDT 2010


Hi,

I've replaced "AddHandler mono *" for "SetHandler mono" in the
mod_mono.conf, and it's not working, I got an Error 404 when I try to open a
url that has no physical representation.

For example, I have an "index.html" file in the folder, so if I open : "
http://192.168.1.74/testwithmono/index.html" it works fine, but if I try to
open "http://192.168.1.74/testwithmono/lalala/lelele" it returns an Error
404. The handler right now is returning a XML whatever be the request, and
in the Windows machine works fine.

Am I missing something?

Cheers.

On 6 April 2010 14:45, Gonzalo Paniagua Javier-3 [via Mono] <
ml-node+1752834-511619419-198370 at n4.nabble.com<ml-node%2B1752834-511619419-198370 at n4.nabble.com>
> wrote:

> On Tue, 2010-04-06 at 04:31 -0800, vtortola wrote:
> [...]
> > Is this possible in Apache with mod_mono? I've been trying a couple of
> > things, like put "AddHandler mono *" in the mod_mono.conf but it doesn't
> > work.
>
> Yes, this works fine. You need to use 'SetHandler mono' instead of
> AddHandler.
>
> -Gonzalo
>
>
> _______________________________________________
> Mono-aspnet-list mailing list
> [hidden email]<http://n4.nabble.com/user/SendEmail.jtp?type=node&node=1752834&i=0>
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
>
> ------------------------------
>  View message @
> http://n4.nabble.com/HttpHandler-to-handle-all-kinds-of-URL-s-in-Mono-Apache-in-order-to-build-a-REST-service-tp1752753p1752834.html
> To unsubscribe from HttpHandler to handle all kinds of URL’s in Mono Apache
> in order to build a REST service, click here< (link removed) >.
>
>
>


-- 
Valeriano Tórtola Luis
vtortola at gmail.com

-- 
View this message in context: http://n4.nabble.com/HttpHandler-to-handle-all-kinds-of-URL-s-in-Mono-Apache-in-order-to-build-a-REST-service-tp1752753p1752887.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100406/ff762366/attachment.html 


More information about the Mono-aspnet-list mailing list