Mono + MVC 4 + .NET 4.0 + nginx 404 (also with XSP) -
on testing box:
root@ubuntu:/var/www# mono --version mono jit compiler version 3.0.6 (debian 3.0.6+dfsg-1~exp1~pre1) copyright (c) 2002-2012 novell, inc, xamarin inc , contributors. www.mono-project.com tls: __thread sigsegv: altstack notifications: epoll architecture: amd64 disabled: none misc: softdebug llvm: supported, not enabled. gc: included boehm (with typed gc , parallel mark)
xsp (compiled github)
root@ubuntu:/var/www# xsp4 --version mono.webserver2.dll 0.4.0.0 (c) (c) 2002-2011 novell, inc. classes embedding asp.net server in application .net 4.0.
nginx config:
root@ubuntu:/var/www# cat /etc/nginx/sites-available/default server { listen 80; access_log /var/log/nginx/mono.log; error_log /var/log/nginx/mono.err.log; location / { root /var/www/; index index.html index.htm default.aspx default.aspx; fastcgi_pass 127.0.0.1:9000; include /etc/nginx/fastcgi_params; } }
running fastcgi-mono-server4:
root@ubuntu:/var/www# fastcgi-mono-server4 /applications="/:/var/www/" /socket=tcp:127.0.0.1:9000 -v [2013-10-06 16:11:07.579396] notice : adding applications '/:/var/www/'... [2013-10-06 16:11:07.607587] notice : registering application: [2013-10-06 16:11:07.607832] notice : host: [2013-10-06 16:11:07.608034] notice : port: [2013-10-06 16:11:07.608230] notice : virtual path: / [2013-10-06 16:11:07.608454] notice : physical path: /var/www/
i nothing 404, i've set permissions 775 make sure isn't permission issue on dlls, no go.
i've tried in global.asax:
protected void application_beginrequest(object sender, eventargs e) { throw new exception("test"); }
still 404s instead of errors xsp seems not acknowledging there application here... runs fine on windows boxes. missing something? i'd develop mono on linux too...
what error getting?
maybe check out how heroku .net buildpack gets running: https://github.com/friism/dev-heroku-buildpack-mono/blob/master/nginx/start#l8
there couple of blog posts details, , readme:
- http://friism.com/heroku-net-buildpack-now-with-nginx
- http://friism.com/heroku-net-buildpack-update-to-mono-3-2-and-more
- https://github.com/friism/heroku-buildpack-mono
you can fastcgi-mono-server output additional debugging info passing parameter: /printlog=true
Comments
Post a Comment