ASP.Net MVC 2 on nginx/mono 2.8

前端 未结 6 1534
心在旅途
心在旅途 2021-02-06 07:07

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 installe

6条回答
  •  遇见更好的自我
    2021-02-06 07:41

    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.

提交回复
热议问题