Current time: 11-25-2024, 07:50 PM Hello There, Guest! (LoginRegister)


Post Reply 
Getting Mod_Mono to work.
Author Message
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #5
RE: Getting Mod_Mono to work.
From a security point of view, you may want to look at selectively enabling (like we do for PHP/CGI currently) mod_fcigd/mod_fastcgi hosted mono processes.

I do this on my side manually, by adding in the proper FCGIWrapper entries for virtualhosts that need mono support.

Example:


<IfModule mod_fcgid.c>

<Directory /var/www/virtual/monosite.com/proxy/htdocs>
##### START EXISTING LINES
FCGIWrapper /var/www/fcgi/monosite.com/php5-fcgi-starter .php
FCGIWrapper /var/www/fcgi/monosite.com/php5-fcgi-starter .php5
FCGIWrapper /var/www/fcgi/monosite.com/php5-fcgi-starter .phtml
Options +ExecCGI
##### END EXISTING LINES

##### START MONO LINES
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .asax
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .ashx
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .asmx
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .aspx
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .ascx
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .axd
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .config
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .cs
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .dll
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .rem
FCGIWrapper "/var/www/fcgi/monosite.com/mono-fcgi-starter /applications=/:/var/www/virtual/monosite.com/proxy/htdocs" .soap
##### END MONO LINES

</Directory>
<Directory "/var/www/fcgi/monosite.com">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>


My fcgid script for mono looks like:

#!/bin/sh
umask 022
exec /usr/bin/fastcgi-mono-server2 /applications=/:/var/www/virtual/monosite.com/htdocs
06-10-2010 11:19 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Getting Mod_Mono to work. - manix - 06-06-2010, 01:02 AM
RE: Getting Mod_Mono to work. - gOOvER - 06-06-2010, 03:21 AM
RE: Getting Mod_Mono to work. - manix - 06-06-2010, 06:40 PM
RE: Getting Mod_Mono to work. - pgentoo - 06-07-2010, 12:54 PM
RE: Getting Mod_Mono to work. - caramel - 10-11-2010, 06:43 AM
RE: Getting Mod_Mono to work. - pgentoo - 06-10-2010 11:19 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)