尝试使用FastCGI在Apache上使用Mono运行ASP.NET MVC应用程序

我有一个DreamHost主机帐户,我想使用相同的帐户来运行ASP.NET应用程序。 我有一个应用程序部署在一个子域,一个.htaccess像这样的处理程序:

# Define the FastCGI Mono launcher as an Apache handler and let # it manage this web-application (its files and subdirectories) SetHandler monoWrapper Action monoWrapper /home/arienh4/<domain>/cgi-bin/mono.fcgi virtual 

我的mono.fcgi是这样设置的:

 #!/bin/sh #umask 0077 exec >>/home/arienh4/tmp/mono-fcgi.log exec 2>>/home/arienh4/tmp/mono-fcgi.err echo $(date +"[%F %T]") Starting fastcgi-mono-server2 cd / chmod 0700 /home/arienh4/tmp/mono-fcgi.sock echo $$>/home/arienh4/tmp/mono-fcgi.pid # stdin is the socket handle export PATH="/home/arienh4/mono/bin:$PATH" export LD_LIBRARY_PATH="/home/arienh4/mono/lib:$LD_LIBRARY_PATH" export TMP="/home/arienh4/tmp" export MONO_SHARED_DIR="/home/arienh4/tmp" exec /home/arienh4/mono/bin/mono /home/arienh4/mono/lib/mono/2.0/fastcgi-mono-server2.exe \ /logfile=/home/arienh4/logs/fastcgi-mono-web.log /loglevels=All \ /applications=/:/home/arienh4/<domain> 

我从单声道网站上获取了这个CGI。 我不确定我是否正确地做了。 此代码导致此错误:

 Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. 

我不知道是什么原因造成的。 据我所知,单声道甚至没有命中(没有创build日志文件)。

你有任何ModRewrite脚本运行? 通常不正确的ModRewrite会导致无限循环。

您可能需要打开mod_cgi“ScriptLog”指令来loggingCGI脚本的执行。