asp mvc home root not working with mono, fastcgi and nginx

后端 未结 2 1125
耶瑟儿~
耶瑟儿~ 2021-01-01 03:45

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 sti

相关标签:
2条回答
  • 2021-01-01 03:53

    Change fastcgi_index Default.aspx;

    to

    fastcgi_index /Home;

    0 讨论(0)
  • 2021-01-01 04:09

    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.

    0 讨论(0)
提交回复
热议问题