Forum

Serving ASP.NET pages using Mono and FastCGI

squig
21 April 2010, 11:01
Hi there,

I'm looking for some example configuration showing how to set up mono support using FastCGI.

Any hints for me?


Thanks in advance,

squig
Hugo Leisink
21 April 2010, 11:45
I have no experience with Mono. What does it need? Have you read the CGI and FastCGI HOWTO?
squig
21 April 2010, 12:40
Hi,

I had a look at the mentioned how to but I don't no which extension to provide for configuration:
FastCGIserver {
FastCGIid = PHP5
ConnectTo = 127.0.0.1:2005
Extension = php
}


I'm using ASP.NET MVC and there are no file extension in the URL. Can I just leave the "Extension" element empty?
Hugo Leisink
21 April 2010, 13:30
Yes, but than no files will match. In order to make it work, you have to use the URL toolkit to tell Hiawatha which URLs should be send to the FastCGI server.

FastCGIserver {
FastCGIid = mono_fastcgi
ConnectTo = 127.0.0.1:2005
}

UrlToolkit {
ToolkitID = mono_toolkit
RequestURI isfile Return
Match .* UseFastCGI mono_fastcgi
}

VirtualHost {
...
UseToolkit = mono_toolkit
}


Note that the above is an example to get you started. It probably needs some tweaking.
squig
21 April 2010, 14:34
Hi,

get it running using your hints. Thank you. Yeah.

Started mono as following:
[code]fastcgi-mono-server2 /socket=tcp:127.0.0.1:2006 /applications=/:/path/to/application/ /loglevels=All /printlog=True[code]Now I have to investigate some routing problems which do not occure when running the same application with Apache and mod_mono.


With kind regards,

squig
squig
21 April 2010, 14:53
Seems to be a problem not related to Hiawatha.

Thanks again.


squig
This topic has been closed.