[Mono-dev] [Patch] mod_mono/xsp and virtual hosts

Gonzalo Paniagua Javier gonzalo at novell.com
Sun Dec 31 15:13:41 EST 2006


On Thu, 2006-12-28 at 19:52 +0100, Juraj Skripsky wrote:
> Hi,
> 
> Mod_mono/xsp do not support virtual hosts with ServerAlias correctly:
> 
> <VirtualHost *:80>
>  DocumentRoot /var/www/html/somesite
>  ServerName www.somesite.com
>  ServerAlias www.somesite.org
> </VirtualHost>
> 
> (AutoConfiguration enabled)
> 
> Requesting http://www.somesite.com/xyz.aspx and then
> http://www.somesite.org/xyz.aspx results in _two_ applications being
> started.
> 
> We're hosting about 20 ASP.NET websites with apache/mod_mono, with some
> of them having a lot of ServerAliases. The amount of memory used by the
> mod-mono-server process is steadly rising as people start hitting those
> aliases and new AppDomains are created...
> 
> The attached patches fix the problem (at least for our
> configuration...). Could somebody please review them and provide
> feedback?

I think the patch looks good and will not break any existing
configuration but it still needs some work in GetApplicationForPath...
I'll try a few different configurations and get back to you in a couple
of days.

-Gonzalo





More information about the Mono-devel-list mailing list