[Mono-aspnet-list] How to use nginx with mvc 4

Curtis Wensley curtis.wensley at gmail.com
Sun Dec 8 18:38:36 UTC 2013


You have to make sure you specify the incoming port when launching fastcgi,
otherwise it defaults to port 80.  Since you have it configured to port 81,
it cannot find the application that matches the incoming request.

e.g. run fastcgi via:

/opt/mono-3.2/bin/fastcgi-mono-server4 
/applications=erp.mysite.com:81:/:/var/www/html/ /socket=tcp:127.0.0.1:9000

Also, read this: http://www.mono-project.com/FastCGI_Nginx

You need to set some fastcgi parameters in the nginx configuration for
everything to work correctly,.



kobruleht wrote
>     /opt/mono-3.2/bin/fastcgi-mono-server4 
> /applications=erp.mysite.com:/:/var/www/html/ /socket=tcp:127.0.0.1:9000
> 
> typing erp.mysite.com:81/myapp in browser returns 500 error
> 
>     No Application Found
> 
>     Unable to find a matching application for request:
> 
>     Host    erp.mysite.com:81
>     Port    81
>     Request Path    /erp
>     Physical Path    /var/www/html/myapp





--
View this message in context: http://mono.1490590.n4.nabble.com/How-to-use-nginx-with-mvc-4-tp4661484p4661485.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list