Mono 2.11 with nginx or apache Mono 2.11 with nginx or apache nginx nginx

Mono 2.11 with nginx or apache


The install package is placing some files in the wrong place. For Apache, you'll have to move the file mod-mono-server4.exe from /usr/lib/mono/4.0 to /usr/lib/mono/4.5 and update the reference inside the file /usr/bin/mod-mono-server4.

If you were using XSP or FastCgi, the same treatment would be required for xsp4.exe and fastcgi-mono-server4.exe and their respective references in /usr/bin.

(I am starting to regret I followed down this Mono path... )


Here's a script that solved my Mono 3.0.3/MVC 3/Nginx issues. After copying over the needed files, the site pulled up fine.


You need to know which port mono server is listen to, and set fastcgi_pass to it in your Nginx configuration file.