nginx/mono 2.8 上的 ASP.Net MVC 2 [英] ASP.Net MVC 2 on nginx/mono 2.8

查看:21
本文介绍了nginx/mono 2.8 上的 ASP.Net MVC 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Linux 环境中设置 ASP.Net MVC 2 应用程序.我在 VirtualBox 上安装了 Ubuntu 10.10,然后从源代码安装了 Mono 2.8.之后,我安装了 nginx 并按照推荐的 here 对其进行配置.不幸的是,FastCGI 向我显示标准错误 500 页面:

I am trying to setup ASP.Net MVC 2 application on Linux environment. I've installed Ubuntu 10.10 on VirtualBox, then installed Mono 2.8 from sources. After that I have installed nginx and configure it as recommended here. Unfortunately, FastCGI shows me standard error 500 page:

No Application Found
Unable to find a matching application for request:
Host localhost:80
Port 80
Request Path /Default.aspx
Physical Path /var/www/mvc/Default.aspx

我的应用程序位于/var/www/mvc 目录中.我试图创建一些存根 Default.aspx 文件并将其放在我的应用程序的根目录中,但它没有帮助,发生了同样的错误.谢谢.

My application is located in /var/www/mvc directory. I've tried to create some stub Default.aspx file and place it in root dir of my application, but it didn't help, same error occured. Thanks.

推荐答案

您的应用程序是否可以使用 xsp(如果您使用的是 .net 4.0,则为 xsp4)?在尝试配置与其他 Web 服务器的连接之前,您需要确保它正常工作.

Does your application work with xsp (xsp4 if you are using .net 4.0)? You'll want to make sure that is working before you try configuring the connection to another web server.

nginx 知道在哪里可以找到单声道吗?您很可能有一个并行安装,它不会在默认路径中.

Does nginx know where to find mono? You most likely have a parallel install and it won't be in the default paths.

我使用 apache,但您可能仍然会发现我博客上的一些说明很有用:http://tqcblog.com/2010/04/02/ubuntu-subversion-teamcity-mono-2-6-and-asp-net-mvc/

I use apache, but you may still find some of the instructions on my blog useful: http://tqcblog.com/2010/04/02/ubuntu-subversion-teamcity-mono-2-6-and-asp-net-mvc/

这篇关于nginx/mono 2.8 上的 ASP.Net MVC 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆