[Mono-list] apache/mod_mono and handlers without extensions?

Joshua Tauberer jit at occams.info
Mon Sep 8 20:33:24 EDT 2008


Christian Hobelsberger wrote:
> thank you for your quick response ...  but it seems not to work. :(
> 
> I have this in my apache config:
> 
> <VirtualHost *>
> 
>         DocumentRoot /www
>         ServerName testserver
> 
>         MonoAutoRestartMode Requests
>         MonoAutoRestartRequests 10
> 
>         MonoPath "/opt/mono-1.9.1"
>         MonoServerPath /opt/mono-1.9.1/bin/mod-mono-server2
> 
>         MonoAutoApplication enabled
> 
>         <Location /v1.10/SimpleTest>
>                 SetHandler mono
>         </Location>
> 
> </VirtualHost>
> 
> Then i try to call "http://127.0.0.1/v1.10/SimpleTest" (the above 
> VirtualHost is the default, so this should work without name, too).
> 
> in the error log i get:
> [error] [client 192.168.1.146 <http://192.168.1.146>] File does not 
> exist: /www/v1.10/SimpleTest
> 
> If i call "http://127.0.0.1/v1.10/SimpleTest.ashx" i get the page, the 
> log says:
> 192.168.1.146 <http://192.168.1.146> - - [08/Sep/2008:14:28:50 +0200] 
> "GET /v1.10/SimpleTest.ashx HTTP/1.1" 200 42
> 
> So just to be sure, there is no subfolder "SimpleTest" ... it's all in 
> the same folder "v1.10" ... i just want to instruct mod-mono-server to 
> handle "SimpleTest" with a certain handler. This works using xsp when i 
> have a handler in the web.config ... but this seems not to work using 
> mod_mono ...

When using mod_mono, you still have the handler configured in 
web.config, right?

When you get the 404, it's a standard Apache 404 page and not an ASP.NET 
"Server error" type page, right?

You restarted Apache?

You should play around with the Location directive until you see that 
it's doing something. You can try "SetHandler server-status" instead 
also to see if it's an Apache config issue and not a mod_mono issue.

HTH

-- 
- Josh Tauberer

http://razor.occams.info

"Yields falsehood when preceded by its quotation!  Yields
falsehood when preceded by its quotation!" Achilles to
Tortoise (in "Godel, Escher, Bach" by Douglas Hofstadter)


More information about the Mono-list mailing list