在 Debian Squeeze 上运行 Mono 2.10.2.0

发布于 2024-12-10 02:14:12 字数 808 浏览 1 评论 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你的背包 2024-12-17 02:14:12

您需要确保站点配置中设置的域与传递给 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/ ...

然后当您访问该站点时显然需要与您设置的域一起使用。

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:

server {
    ...
    server_name www.domain1.xyz;
    ...
}

You would need to pass that domain into the fastcgi server:

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

Then when you access the site it will obviously need to be with that domain you set.

九局 2024-12-17 02:14:12

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

Are you running some kind of quite new ASP? In that case you should run something like fastcgi-mono-server4.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文