PDA

View Full Version : Embedding MindTouch Core with restricted HttpHandler



rwolter
01-26-2010, 02:10 PM
Is there a way to restrict the dream HttpHandler to specific url paths so additional aspx pages can be hosted in the same project?

In the web.config I restricted the HttpHandler to '/wiki/*' and the path in the 'mindtouch.deki.startup.xml' to 'wiki/deki' but all calls seem to result in a 404 error.

For example I expected the call 'http://localhost:1152/wiki/deki/pages/home' works as expected when I set the Handler to handle '*', but the same call fails with 404 when I restrict the handler to '/wiki/*'.

Any ideas how this could be handled?

SteveB
01-26-2010, 06:06 PM
I don't think the HttpHandler is designed for that case. I would recommend just using another host name to map to a different web root on the same server.

rwolter
02-05-2010, 06:45 PM
Thank you,

You appear to be correct. The patterns httphandlers accept seem to be rather limited.

What I found interesting is that the patterns '*' seems to violate the rules I've found concering what input is matched. Maybe it is implemented as a special case.

Anyway I installed the server under a different host as You suggested. My only regret is that I cannot run both my code and the server in the same project which makes automated testing somewhat more difficult.