multiple users on one install

Aaron Held <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
I was playing around with different ideas for hosting multiple users on 
a single pybloxsom install and came up with this sort of idea:

in config.py

from string import lower
import os
http_host =  lower(os.environ.get('HTTP_HOST', ""))

if http_host == 'aaron.metrony.com':
        py['blog_title'] = "Aaron's Blog"
        py['datadir'] = "/home/aaron/blogData"

elif http_host == 'mg.metrony.com':
        py['blog_title'] = "Michelle's Blog"
        py['datadir'] = "/home/mg/blogData"

This way each user can have a blogData directory in thier own home dir.

I am trying to figure out a way to use suExec make the cgi's run as a 
different user based on the url, but so far the best I have come up with 
is a rewrite to ~aheld/blog, but I would rather just keep one instance 
of pybloxsom like:

RewriteRule "^blog(.*)$" http://www.metrony.com/cgi-bin/pybloxsom.cgi$1

any ideas out there????

Thanks,
-Aaron

http://www.MetroNY.com/





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.