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
</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.
Do you have an Alias for /TestApp?
-Gonzalo
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
Here is an example of the problem using nGallery which makes use of httpHandlers
in my apache conf file
Alias /nGallery "/var/mono-apps/nGallery" MonoApplications "/nGallery:/var/mono-apps/nGallery"
in my sites-enabled (using the ubuntu distro)
<Location /nGallery>
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx
# SetHandler mono
</Location>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.
http://144.132.106.142/nGallery/default.aspx
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 :)
any ideas
thanks
Simon _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
