在Debian上运行Mono 2.10.2.0

在Debian上运行Mono 2.10.2.0,mono,nginx,debian,Mono,Nginx,Debian,我有一个服务器,具有: Debian挤压 Mono 2.10.2.0 Fastcgi-mono-server2 2.10.2.0 Nginx 1.0.8 Nginx根据mono项目主页配置了FastCgi: 我在目录/var/www/monotest中有一个MVC2应用程序 nginx和fastcgi-mono-server2似乎都运行正常。但我在浏览器中遇到以下错误: No Application Found Unable to find a matching application fo

我有一个服务器,具有: Debian挤压 Mono 2.10.2.0 Fastcgi-mono-server2 2.10.2.0 Nginx 1.0.8

Nginx根据mono项目主页配置了FastCgi:

我在目录/var/www/monotest中有一个MVC2应用程序

nginx和fastcgi-mono-server2似乎都运行正常。但我在浏览器中遇到以下错误:

No Application Found

Unable to find a matching application for request:
Host    xx.xx.xx.xx
Port    80
Request Path    /
Physical Path   /var/www/monotest/
我假设该请求已从Nginx转发到fastcgi-mono-server2,并且该服务器无法找到该应用程序。/var/www/monotest/的内容是从源代码构建的网站:

Content/  Global.asax  Scripts/  Views/  Web.config  bin/ 
当它通过VisualStudio在windows机器上运行时,它可以作为一个网站使用。它只是标准的MVC测试网站

任何调试策略都将不胜感激


致以最诚挚的问候。

您是否正在运行某种全新的ASP?在这种情况下,您应该运行类似fastcgi-mono-server4的程序。

您需要确保站点配置中设置的域与传递给fastcgi服务器的域匹配。例如,如果您的默认站点/etc/nginx/sites enabled/default具有以下配置:

server {
    ...
    server_name www.domain1.xyz;
    ...
}
您需要将该域传递到fastcgi服务器:

sudo fastcgi-mono-server4 /applications=www.domain1.xyz:/:/var/www/www.domain1.xyz/ ...

然后,当您访问该站点时,它显然需要与您设置的域相匹配。

您确定主机匹配吗?这个答案有一个对我有用的建议: