[Mono-aspnet-list] AutoHosting and Apache restart
maxr at expeditions.com
Mon Apr 12 16:54:27 EDT 2010
I've been running Mono on my CentOS 5.4 server for a while already. I have 5 virtual hosts that run asp.net websites. Recently I noticed occasional freezes when I update precompiled assemblies, so I decided to switch from AutoHosting to manual configuration so each vhost will be processed by its own mod-mono-server2.
I disabled AutoHosting and set .NET 2.0 in mod_mono.conf:
Then in each vhost I configured different mono applications like this:
MonoApplications domain.com "/:/home/sites/domain.com"
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
Everything is working except couple annoyances:
1) When I restart (or reload) Apache, mod_mono do NOT restart xsp servers. After completion of the restart, mod_mono just spawns another set of xsp servers: after restart I have 10 xsp processes; another restart - 15 total, and so on.
2) Even though, I disabled AutoHosting, I still see A BUNCH of XXGLOBAL processes in Mono control panel: there is general one, then one for each vhost (alogn side with proper Mono application that I defined in the vhost configuration file)
Mono and mod_mono 2.6.3
XSP command line:
/usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename /tmp/mod_mono_server_domain.com --applications /:/home/sites/domain.com --nonstop
I appreciate any input.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-aspnet-list