multisite - username in user/site

1 view
Skip to first unread message

Anil

unread,
Jun 9, 2008, 9:44:34 PM6/9/08
to habari-users
I have users in my database with a user name of us...@domain.com.

Right now, by default the schema looks like it is http://domain.com/page|entry

I would like to setup Habari such that each of these users have their
own blog when they goto http://domain.com/user.

Is that something that can be accomplished?


That "user" should be user, and not http://domain.com/us...@domain.com.
I could always rewrite something in lighttpd to make it map http://domain.com/user
-> http://domain.com/us...@domain.com... but that might look ugly after
the redirect/rewrite occurs.

(Thanks to the folks on IRC who gave some feedback and pointed me to
the wiki that suggested that it does not work right now? But, I would
like to get feedback from a wider audience and also know when this
might be fixed.)


Anil

unread,
Jun 23, 2008, 1:21:45 PM6/23/08
to habari-users
Can someone provide some feedback on this or if this would ever be
implemented? This is a "must have" for us, if this will be available
in 0.5, we could
roll it out in a wider user base.

Thanks!

rick c

unread,
Jun 23, 2008, 2:23:58 PM6/23/08
to habari-users
As you've noted, subdirectory multisites don't work on Habari at the
moment. I'm not sure when they will, but it hasn't been discussed as a
priority for Version 0.5.

What does work is subdomains, so for each user you could create a
subdirectory under /user/sites called user.domain.com. In your host's
control panel, set each subdomain to point to Habari's base directory.
Place a config.php file in each user's subdirectory appropriate for
the type of database they'll be using. Then you can either run the
install for them, let them run the install themselves, or prefill the
config file with the appropriate information so they don't need to do
any manual installation.

Rick

On Jun 9, 9:44 pm, Anil <replic...@gmail.com> wrote:
> I have users in my database with a user name of u...@domain.com.
>
> Right now, by default the schema looks like it ishttp://domain.com/page|entry
>
> I would like to setup Habari such that each of these users have their
> own blog when they gotohttp://domain.com/user.
>
> Is that something that can be accomplished?
>
> That "user" should be user, and not http://domain.com/u...@domain.com.
> I could always rewrite something in lighttpd to make it maphttp://domain.com/user
> -> http://domain.com/u...@domain.com... but that might look ugly after

Anil

unread,
Jun 23, 2008, 7:02:48 PM6/23/08
to habari...@googlegroups.com
Thanks for the information. Is there a bug associated with this issue? I would
like to follow it.

We would still prefer to have <user> rather than subdomain, which would involve
another system to be setup (DNS). Hope this can be implemented in at
least the next
version after 0.5.

Is it a major code problem that is preventing this from being done or just other
higher priorities?

Michael C. Harris

unread,
Jun 24, 2008, 12:51:15 AM6/24/08
to habari...@googlegroups.com
On Mon, Jun 23, 2008 at 04:02:48PM -0700, Anil wrote:
>
> Thanks for the information. Is there a bug associated with this
> issue? I would like to follow it.

There's no issue filed regarding having per-user subdirectories. Feel
free to file one, http://trac.habariproject.org/habari.

> We would still prefer to have <user> rather than subdomain, which
> would involve another system to be setup (DNS). Hope this can be
> implemented in at least the next version after 0.5.
>
> Is it a major code problem that is preventing this from being done
> or just other higher priorities?

You're the first person who has wanted this specific thing, so I don't
think anyone has really thought about it in great depth. I'd be
surprised if there were huge technical issues with getting it done
(though I don't mean to suggest it would be trivial). I hope that
multi-user/multi-site issues will be at least part of the focus of an
upcoming release (because I suspect it's an area of great potential
that is not well served by other tools).

Opening an issue is a start, but the best way to get this implemented
is to get involved with the project and push it. That doesn't
necessarily mean diving right in and coding stuff (though that would
be great) but getting a feel for how it might be implemented and
talking to people about the issues on -dev or on IRC.

--
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog

rick c

unread,
Jun 24, 2008, 7:49:59 AM6/24/08
to habari-users
From the discussion on it, I've always understood ticket #61 (
http://trac.habariproject.org/habari/ticket/61 ) to refer to this
issue. More discussion on the -dev list would be welcome, as
resolution would be another, possibly unique, addition to Habari. As
Anil says, it would allow the use of subsites without having to get
involved with DNS, making them easier for many people to implement.

Rick

On Jun 24, 12:51 am, "Michael C. Harris" <michael.twof...@gmail.com>
wrote:
> On Mon, Jun 23, 2008 at 04:02:48PM -0700, Anil wrote:
>
> > Thanks for the information. Is there a bug associated with this
> > issue? I would like to follow it.
>
> There's no issue filed regarding having per-user subdirectories. Feel
> free to file one,http://trac.habariproject.org/habari.
Reply all
Reply to author
Forward
0 new messages