Cannot run ASP.NET Web API with Nginx and Mono on Ubuntu

FireFalcon nginx-forum at nginx.us
Mon Nov 10 07:01:13 UTC 2014


Good day,
first of all I am new to Linux OS and mono.

I am tryiing to run my ASP.NET Web API on Ubuntu with Nginx and Mono. Here
is what I've done so far:

I have installed mono, nginx, fastcgi-server4 and all successful.
I have followed all the steps from the following URL to run my application
on Linux:

http://piotrwalat.net/running-asp-net-web-api-services-under-linux-and-os-x/

When I run the following command:

fastcgi-mono-server4 --appconfigdir /etc/webapps /socket=tcp:127.0.0.1:9002

nothing happens, Terminal doesn't show any response. What can I do???

 Here are my configurations:

Virtual host configuration:

server {
         listen   5757;
         server_name  localhost;
         root /var/www/TestWebSite;
         access_log   /var/log/nginx/test.access.log;

         location / {
                 index index.html index.htm default.aspx Default.aspx;
                 fastcgi_index /Default.aspx;
                 fastcgi_pass 127.0.0.1:9002;
                 include /etc/nginx/fastcgi_params;
         }
 }

My MonoWebApi.webapp:

<apps>  
<web-application>
        <name>TestWebSite</name>
        <vhost>localhost</vhost>
        <vport>5757</vport>
        <vpath>/</vpath>
        <path>/var/www/TestWebSite</path>
</web-application>
</apps>

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254714,254714#msg-254714



More information about the nginx mailing list