[Mono-list] mod-mono-server-2 randomly runs instead of mod-mono-server 4

Brian Vogel brian at techrhythm.com
Fri Nov 15 04:20:41 UTC 2013

I am running mod_mono with Apache on Cent OS.  It's a clean install of mono
3.2.0  The site has been running fine with no issues for several months.  I
have an issue with my application where mod-mono-server2.exe will randomly
get executed of mod-mono-server-4.  This happened again today after I
restarted Apache.

I've had this same issue before with previous versions of mono. I had a
peek at mod_mono.c and it looks like it will fall back to mod-mono-server2
when server_path is not set, which is what's happening to me - at least
it's running mod-mono-server2 instead of 4.


Given the random nature of the problem is it possible that there may be
some memory getting inadvertently erased or that the .conf file isn't
getting loaded in the first place? Any help in troubleshooting this would
be greatly appreciated!

I've included my .conf file below for posterity.



#my conf file

   MonoAutoApplication disabled
   AddHandler mono .asax .ashx .config .cs .cshtml .asmx .axd
   #not really needed since MonoServerPath should override it - grasping at
straws here!
   MonoTargetFramework 4.0
   MonoServerPath "/usr/local/bin/mod-mono-server4"
   MonoDebug test.mysite.com false
   MonoApplications test.mysite.com "/:/var/www/vhosts/mysite30.com/httpdocs

  <Location "/">
     Allow from all
     Order allow,deny
     MonoSetServerAlias test.mysite.com
     SetHandler mono
     SetOutputFilter DEFLATE
     SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20131114/cf311053/attachment.html>

More information about the Mono-list mailing list