在 Debian Squeeze 上运行 Mono 2.10.2.0
我有一个服务器: Debian 挤压 单声道2.10.2.0 Fastcgi-mono-server2 2.10.2.0 Nginx 1.0.8
Nginx根据mono项目主页配置了FastCgi: http://www.mono-project.com/FastCGI_Nginx
我在目录中有一个 MVC2 应用程序/var/www/monotest
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 测试网站。
任何调试策略将不胜感激,
最诚挚的问候。
I have a server with:
Debian squeeze
Mono 2.10.2.0
Fastcgi-mono-server2 2.10.2.0
Nginx 1.0.8
The Nginx is configured with FastCgi according to the mono-project home page:
http://www.mono-project.com/FastCGI_Nginx
I have an MVC2 application in the directory /var/www/monotest
Both nginx and fastcgi-mono-server2 seems to run without errors. But I get the following error in the browser:
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/
I assume that the request have been fowarded from Nginx to the fastcgi-mono-server2 and that this server can not find the application. The content of the /var/www/monotest/ is the web site that has been build from the source:
Content/ Global.asax Scripts/ Views/ Web.config bin/
And it works as a website when it is run on a windows machine through visual studio. It's just the standard MVC test web site.
Any strategy for debugging would be appreciated,
best regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要确保站点配置中设置的域与传递给 fastcgi 服务器的域匹配。例如,如果您的默认站点(
/etc/nginx/sites-enabled/default
)具有以下配置:您需要将该域传递到 fastcgi 服务器:
然后当您访问该站点时显然需要与您设置的域一起使用。
You need to make sure the domain set in your site config matches the domain passed to the fastcgi server. So for example if your default site (
/etc/nginx/sites-enabled/default
) has the following config:You would need to pass that domain into the fastcgi server:
Then when you access the site it will obviously need to be with that domain you set.
您是否正在运行某种全新的 ASP?在这种情况下,您应该运行 fastcgi-mono-server4 之类的东西。
Are you running some kind of quite new ASP? In that case you should run something like fastcgi-mono-server4.