我有 mono 2.6.7,我正在尝试移植 ASP.NET MVC 应用程序。我通过设置变量 MONO_IOMAP=all 设法解决了区分大小写的问题。我还有一个问题,我的主根无法工作。我收到页面未找到错误(尽管 /home 和 /home/index 有效)。我正在使用 nginx 和 fastcgi。这是我的 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最终为我工作。
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;
}
我完全删除了索引行并将 fastcgi_index 更改为fastcgi_index /;
。使用 Mono 3.0.3/ASP.NET MVC3。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)