"John P . Looney" wrote:

> Ah. Found a few problems with the httpd.conf and have most fixed. Is
> there an example of a working httpd.conf anywhere ?

I've put mine up at
http://www.iris-advies.com/php/Emile.Heyns/httpd.conf

> I want
> midgard.antefacto.com to be setup as a virtual host (and an ssl vhost
> enabled as well) and found it sorta confusing as to where I should put
> stuff, and found that I'm having to move stuff out of an Included
> midgard.conf to be picked up.

That could be. Stuff in apaches config files works from the moment you
set it,
so if you set the Midgard directives late in the config file (possibly
via an include) the earlier stuff isn't affected by it.

> > Looks like you're using filetemplates on a host with a prefix set.
> 
>  Is that bad ? Whats a filetemplate ? Are they bad ?

:) Not really.

Filetemplates is a limited version of Midgards capabilities, with the
content
in files, not the database. It's easier to edit and share, but you're
missing
some stuff. The ".mgd" files you mentioned earlier are the extension I
used
for FTs in my examples, so that's how I figured.

Filetemplates will only be recognized by midgard when the virtualhost
that serves
them has a matching host record in the midgard database, without a
prefix.

> Where is the prefix set ? In the virtualhost setting in the httpd.conf, or
> in the host table in the midgard database ?

In the host table. You set it using the admin site, or by hand with
direct access
to the database. The admin site is a friendlier interface though.

> > Filetemplates will only match against a host without a prefix. If you
> > want to use FTs in disconnected mode, use php3_midgard_rootfile to
> > specify the location of the rootfile.
> 
>  What's disconnected mode ? Does that mean I've broken the setup somehow ?

Not at all, it's simply one of the ways to use FTs. In connected mode
(when a matching,
non-prefixed host record is found), mod_midgard will set up a database
connection for
you and you will be able to access the midgard database through that
connection just
like you would with a regular Midgard app. The admin site in
filetemplates is not
going to be very useful unless you are connected.

If no matching host record is found, you are in disconnected mode (all
the same stuff,
but without a connection to the midgard database). So you can use styles
and elements,
and the &(...); formatting code but not the mgd_.... calls.

Disconnected mode works without mod_midgard even being present.

>  Sorry for being stupid-sounding, though the search on the site doesn't
> mention anything about it...

FTs have been dormant for a great while. They're mostly finished but
mostly untested;
I plan to give them more attention after the xmas release.

Emile

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to