[Mono-list] apache, mod_mono, httpHandlers & 404 problem.

simon sjen5@bigpond.com
Mon, 11 Apr 2005 09:16:39 +1000


I'm having some problems setting the handlers for mono using apache. 
Specifically if i choose to set the handler for specific file extensions 
i have 404 page not found problems when i use an httpHandler in my 
application.

ie. If i use the following in my apache config the application works fine.
        <Location /TestApp>
               SetHandler mono
        </Location>


If i use the following in my apache config i get page not found errors 
when i request the url for an httpHander
        <Location /TestApp>
               AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx
        </Location>

The problem is that the the url for httpHandler doesnt exist as an aspx 
page, apache seems to be deciding that the actual file doesnt  exist 
before it passes the request to mod_mono.
In this case the problem is not critical, however if i was using a front 
controller or something where the requested page doesnt necessarily 
exist then there would be all sorts of problems.

Im after this behaviour as i want apache to serve the static content 
instead of passing the request to mod_mono to do it.

Has anyone encountered/solved this problem before

Thanks.

Simon