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

Valeriano Tórtola Luis vtortola at gmail.com
Tue Apr 6 11:24:57 EDT 2010


Hi,

Now I get an Error 503 (Service temporarily unavailable) whatever I tried,
even the index.html page.

Is there any documentation about how archieve this?

This is my mod_mono.conf :


<IfModule !mod_mono.c>
    LoadModule mono_module /usr/lib/apache2/mod_mono.so
</IfModule>

AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .vb
AddType application/x-asp-net .master
AddType application/x-asp-net .sitemap
AddType application/x-asp-net .resources
AddType application/x-asp-net .skin
AddType application/x-asp-net .browser
AddType application/x-asp-net .webinfo
AddType application/x-asp-net .resx
AddType application/x-asp-net .licx
AddType application/x-asp-net .csproj
AddType application/x-asp-net .vbproj
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
AddType application/x-asp-net .svc
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx

SetHandler mono
MonoAutoApplication disabled




On 6 April 2010 16:06, Robert Jordan <robertj at gmx.net> wrote:

> On 06.04.2010 16:28, vtortola wrote:
> >
> > 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?
>
> Disable autohosting:
>
>        MonoAutoApplication disabled
>
> Robert
>
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>



-- 
Valeriano Tórtola Luis
vtortola at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100406/00e55af5/attachment-0001.html 


More information about the Mono-aspnet-list mailing list