ASP.Net MVC 2的nginx /单声道2.8 [英] ASP.Net MVC 2 on nginx/mono 2.8

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

问题描述

我试图在Linux环境设置ASP.Net MVC 2应用程序。我VirtualBox上安装了Ubuntu 10.10,然后从源代码安装单声道2.8。从那以后,我已经安装了nginx的,并将其配置为推荐这里
不幸的是,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您的应用程序工作(xsp4如果您使用的是.NET 4.0)?你要确保工作正常,尝试配置到另一台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/

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

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