【发布时间】:2011-12-08 09:50:48
【问题描述】:
我有一个服务器: Debian 挤压 单声道 2.10.2.0 Fastcgi-mono-server2 2.10.2.0 Nginx 1.0.8
Nginx根据mono-project主页配置FastCgi: http://www.mono-project.com/FastCGI_Nginx
我在 /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/
当它通过 Visual Studio 在 Windows 机器上运行时,它就像一个网站。它只是标准的 MVC 测试网站。
任何调试策略都将不胜感激,
最好的问候。
【问题讨论】:
-
您确定主机匹配吗?这个答案有一个对我有用的建议:stackoverflow.com/a/4651783/33236