ASP MVC家里根本无法与单声道,FastCGI的Nginx的和工作 [英] asp mvc home root not working with mono, fastcgi and nginx

查看:163
本文介绍了ASP MVC家里根本无法与单声道,FastCGI的Nginx的和工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有单2.6.7和我试图端口一个ASP.NET MVC应用程序。我已经成功通过设置变量MONO_IOMAP破案灵敏度问题=所有。我还多了一个问题,我家根本不工作。我得到一个网页未找到错误(尽管/ home和/家庭/工作指数)。我使用nginx的和FastCGI。这里是我的配置nginx的:

 服务器{
    听80;
    SERVER_NAME mydomain.com;
    访问日志/var/log/nginx/mydomain.com.log;    位置 / {
        根/家庭/ EC2用户/网络/ MYDOMAIN的Web /;
        指数的index.html index.htm的Default.aspx的Default.aspx的;
        fastcgi_index Default.aspx的;
        fastcgi_pass 127.0.0.1:9000;
        包括在/ etc / nginx的/ fastcgi_params;
    }


解决方案

结束了为我工作。

 服务器{
    听80;
    SERVER_NAME mydomain.com;
    访问日志/var/log/nginx/mydomain.com.log;    位置 / {
        根/家庭/ EC2用户/网络/ MYDOMAIN的Web /;
        fastcgi_index /;
        fastcgi_pass 127.0.0.1:9000;
        包括在/ etc / nginx的/ fastcgi_params;
}

我完全去除的指标线,改变了fastcgi_index为 fastcgi_index /; 。使用单声道3.0.3 / ASP.NET MVC3。

i have mono 2.6.7 and I'm trying to port an ASP.NET MVC application. i've managed to solve the case sensitivity problem by setting the variable MONO_IOMAP=all . I have still one more problem, my home root isn't working. I get a page not found error (although /home and /home/index work). I'm using nginx and fastcgi. here is my configuration for nginx:

server {
    listen       80;
    server_name  mydomain.com;
    access_log   /var/log/nginx/mydomain.com.log;

    location / {
        root  /home/ec2-user/www/mydomain-web/;
        index  index.html index.htm default.aspx Default.aspx;
        fastcgi_index Default.aspx;
        fastcgi_pass 127.0.0.1:9000;
        include /etc/nginx/fastcgi_params;
    }

解决方案

This ended up working for me.

server {
    listen       80;
    server_name  mydomain.com;
    access_log   /var/log/nginx/mydomain.com.log;

    location / {
        root  /home/ec2-user/www/mydomain-web/;
        fastcgi_index /;
        fastcgi_pass 127.0.0.1:9000;
        include /etc/nginx/fastcgi_params;
}

I removed the index line completely and changed the fastcgi_index to fastcgi_index /;. Using Mono 3.0.3/ASP.NET MVC3.

这篇关于ASP MVC家里根本无法与单声道,FastCGI的Nginx的和工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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