Bug 324552 (MONO81878) - [PATCH] ServerAlias (Virtual hosts) support for Mod_mono/xsp
Summary: [PATCH] ServerAlias (Virtual hosts) support for Mod_mono/xsp
Status: RESOLVED FIXED
Alias: MONO81878
Product: Mono: Tools
Classification: Mono
Component: mod_mono (show other bugs)
Version: 1.0
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Marek Habersack
QA Contact: Marek Habersack
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-15 12:29 UTC by Juraj Skripsky
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch to mod_mono (1.21 KB, patch)
2007-06-15 12:33 UTC, Thomas Wiest
Details | Diff
Patch to xsp (1.73 KB, patch)
2007-06-15 12:33 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:41:41 UTC


---- Reported by juraj@hotfeet.ch 2007-06-15 05:29:33 MST ----

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...



---- Additional Comments From juraj@hotfeet.ch 2007-06-15 05:31:23 MST ----

The issue was already discussed on the mailing list:
http://lists.ximian.com/pipermail/mono-devel-list/2006-December/021896.html
http://lists.ximian.com/pipermail/mono-devel-list/2006-December/021927.html

Gonzalo's answer (second message from above):
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.



---- Additional Comments From juraj@hotfeet.ch 2007-06-15 05:33:03 MST ----

Created an attachment (id=172153)
Patch to mod_mono




---- Additional Comments From juraj@hotfeet.ch 2007-06-15 05:33:27 MST ----

Created an attachment (id=172154)
Patch to xsp




---- Additional Comments From mhabersack@novell.com 2007-06-20 04:03:38 MST ----

This bug was fixed in svn trunk, revisions 80294 and 80295

Imported an attachment (id=172153)
Imported an attachment (id=172154)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>FC6</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".