[Mono-list] apache, mod_mono, httpHandlers & 404 problem.
Tue, 12 Apr 2005 09:56:49 +1000
Gonzalo Paniagua Javier wrote:
>On Mon, 2005-04-11 at 09:16 +1000, simon wrote:
>>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
>>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.
>Do you have an Alias for /TestApp?
>Mono-list maillist - Monofirstname.lastname@example.org
Here is an example of the problem using nGallery which makes use of
in my apache conf file
Alias /nGallery "/var/mono-apps/nGallery"
in my sites-enabled (using the ubuntu distro)
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx
# SetHandler mono
Now if you browse to the url below, you will see that the images which
are generated on the fly using the httpHandler do not show.
If i was to change back to SetHandler mono the application would work fine.
The issue is that apache2/mod_mono has decided that the file for the url
to the aspx for the handler doesnt exist. Whereas in reality its not
meant to exist :)