Page 1 of 1

Using Mono with Vesta CP

Posted: Fri Oct 03, 2014 7:50 am
by zonder
I need to install mono on my server but of course I want to be able to administer it through vesta cp as well. I have found information on installing this http://www.mono-project.com/docs/web/fastcgi/nginx/.

But how do you let vestacp know about this?

(I am using ubuntu)

Re: Using Mono with Vesta CP

Posted: Sat Oct 11, 2014 8:06 pm
by F41L
There's no real way to get vestacp itself to be aware of your mono server, but you can just modify your user's nginx configuration to have your web domain's webroot fastcgi proxy to your local mono application daemon. To do so, do the following:

Go to /home/<USER>/conf/web/nginx.conf

Under the "location / {" block, add this:

Code: Select all

index index.html index.htm default.aspx Default.aspx;
fastcgi_index Default.aspx;
fastcgi_pass 127.0.0.1:<PORTNUMBERHERE>;
include /etc/nginx/fastcgi_params;
edit /etc/nginx/fastcgi_params to include:

Code: Select all

fastcgi_param  PATH_INFO          "";
fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
Run your app with the mono fastcgi server as required.