[pmwiki-users] URL/host based configuration

Simon nzskiwi at gmail.com
Tue Nov 29 02:31:19 CST 2011


Hi and thanks

I want say, a wiki farm, where

a.kiwiwiki.co.nz is one wiki website
b.kiwiwiki.co.nz is a different separate wiki website

so they have separate config.php, skins, content, etc

Simon


On 14 November 2011 23:02, Rogutės Sparnuotos <rogutes at googlemail.com>wrote:

> You want the same content on different domains, with some specific
> settings per domain?
>
> Simon (2011-11-14 16:57):
> > I'm interested in this too,
> > I was not able to get it to work,
> > so having something I can use and document on PmWiki would be great
> >
> >
> >
> > On 14 November 2011 09:46, Peter Bowers <pbowers at pobox.com> wrote:
> >
> > > On Sun, Nov 13, 2011 at 9:20 PM, Oliver Betz <list_ob at gmx.net> wrote:
> > > > I want to use the same installation of PmWiki for two domains to
> avoid
> > > > data duplication and provide easier maintenance.
> > > >
> > > ...
> > > > is something like
> > > >
> > > >  if(preg_match("/foo.invalid$/", $_SERVER['HTTP_HOST']))...
> > > >
> > > > the right way to check for the domein, or should I better use
> > > > _ENV["HTTP_HOST"] or _SERVER["SERVER_NAME"]?
> > >
> > > For a similar requirement on one of my sites I have used
> > > $_SERVER['SERVER_NAME'] with good success.  It's not pmwiki
> > > specifically in that case, but in all other respects sounds identical.
> > >
> > > -Peter
> > >
> > > _______________________________________________
> > > pmwiki-users mailing list
> > > pmwiki-users at pmichaud.com
> > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> > >
> >
> >
> >
> > --
> > ____
> > http://kiwiwiki.co.nz
>
> > _______________________________________________
> > pmwiki-users mailing list
> > pmwiki-users at pmichaud.com
> > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
> --
> --  Rogutės Sparnuotos
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20111129/e9511a9d/attachment.html>


More information about the pmwiki-users mailing list