[Mono-dev] [PATCH] Re: mod_mono AutoConfiguration dead

Joshua Tauberer jit at occams.info
Fri Oct 20 17:57:13 EDT 2006


Chris van Wyk wrote:
> I am running a FC4 server relying on mod_mono AutoConfiguration.
> Unfortunately this died on me today.
> 
> I am running ver 1.1.18.0 and will appreciate it if someone could give me a
> hint on where to start looking for the problem.

Having now taken a look at what's happening, I apologize for breaking
things.

Anyway, I'm attaching a patch that seems like it fixes the problem.  The
problem was twofold.  First, virtual hosts seem to not all create a
XXGLOBAL (i.e. auto-configuration) mod-mono-server.  On my box, I have
XXGLOBAls for all of the virtual hosts in which I've explicitly
configured the 'default' entry (where I don't use auto configuration,
but the configuration gets applied to the XXGLOBAL entry) but not in the
virtual hosts that have no explicit AddMonoApplication directives.  I
don't understand why, but so it is.

Second (and this is what changed with my previous patch), now that each
mod-mono-server configuration entry knows which virtual host it was
created by and meant for, requests for pages on one virtual host would
not get handled by mod-mono-servers configured by a different virtual
host.  What was happening before was that virtual hosts with no mono
configuration lines would not have their own XXGLOBAL server created,
and so they would pick up the one created for the main server
configuration.  My change prevented that.

The attached patch makes the following change:

When looking for a mod-mono-server configuration for a particular alias
except the default alias, if such an alias wasn't configured in a vhost,
it will fall back to one configured in the main server configuration.

The effect for the breakage is if you don't do any mod_mono configuring
in a vhost, pages will be served by the XXGLOBAL for the main server
configuration if auto-configuration is enabled.  This is how things were
in 1.1.17.

I expected the patch to allow other aliases besides XXGLOBAL to fall
back, but I couldn't get it to do it...

-- 
- Joshua Tauberer

http://razor.occams.info

"Strike up the klezmer and start acting like a man. You're
about to have a truth-mitzvah."  -- The Colbert Report
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mod_mono_autoconf_fix.patch
Type: text/x-patch
Size: 2656 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061020/0ce999a7/attachment.bin 


More information about the Mono-devel-list mailing list