[Mono-list] Re: mod_mono ignoring DirectoryIndex?

benjamin van der veen bvanderveen at gmail.com
Wed Jun 22 17:09:55 EDT 2005


Indeed I was using SetHandler, and changing it to AddHandler solved the problem.

I was following instructions at
http://www.mono-project.com/Mod_mono#Configuring_Mod_Mono -- it seems
this issue would be documented in some way.

I very much appreciate your help.

benjamin j. van der veen

On 6/22/05, Robert Jordan <robertj at gmx.net> wrote:
> Benjamin,
> > I have set up an Apache virtual host to work with mod_mono. My ASP.NET
> > application doesn't work yet because of some Windows-specific
> > filesystem access. This is expected. However, when I access the root
> > of the virtual host, I get an error message telling me of the problem
> > as mono attempts to run default.aspx, despite the fact that I have no
> > DirectoryIndex directive with default.aspx as an argument. There is an
> > index.html in the root directory; and I expected that it should be
> > served.
> >
> > So in addition to the "main server" DirectoryIndex directive that
> > contains index.html, I added the following inside the virtual host:
> >
> > DirectoryIndex index.html
> >
> > It is the only DirectoryIndex directive in the virtual host. Still,
> > the problem occurs.
> You're probably using "SetHandler mono". Try AddHandler:
> <Directory "/physical/path/to/your/asp.net/test">
>      AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
>      DirectoryIndex index.html index.aspx default.aspx
> </Directory>
> Rob
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

More information about the Mono-list mailing list