Piotr Pokora schrieb:
> Andreas Flack writes:
>> Hi!
>
> Hi!
>
>> (process:23708): midgard-core-DEBUG: query=SELECT
>> id,style,root,lang,info&1,Length(prefix),sitegroup FROM host WHERE
>> name='www.contentcontrol-berlin.de' AND port in (0,80) AND ( (0 <> 0 AND
>> prefix = '') OR (0 = 0 AND
>> prefix=Left('/midcom-static/jQuery/jquery-1.2.6.js',Length(prefix)) AND
>>
>> i.e. it tries to load paths that map to the file system from the
>> database, which seems kind of unnecessary. Is this expected behavior or
>> should it be noted in trac?
>
> Expected. It's main purpose of midgard-apache module.
> First midgard-apache tries to translate url to some database object like
> page or attachment.
> Then if none found, midgard module tells apache "it's not my request,
> please serve it".
> If there's no more module which could handle request, apache does
> fallback to filesystem.
>
> It can not be changed, improved, whatever in ragnaroek.
>
> It's completely "redesigned and refactored" in vinland which doesn't
> have apache module :)
>
> BTW, I am not sure if this could be work arounded by MidgardEngine
> directive used within Location or Directory tags. Or directly in htacess
> file.
MidgardEngine is set to off for midcom-static directory, and as far as I
remember, this used to work in 2.8., at least I can't remember the last
time I saw these queries.
Bye,
Andreas
> Piotras
> _______________________________________________
> user mailing list
> [email protected]
> http://lists.midgard-project.org/mailman/listinfo/user
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user