If everyone runs the same codebase then you can use the rewrite rule to grab the user info.
If you are in a linux type envrion you can use personal home directories to store files and these directories will be readable by the apache user.
I ran webware as apache and had users put files in thier ~public_html dir.
Python can read that dir through the filesystem and apache can serve static content directly from it as well.

in sitePage had a function like:
getStaticUrl:
    return ("%s/~%s/" % (baseURL, user))

getTemplatePath():
    templatePath('/home/%s/~public_html/templates' % user)

Leith Parkin wrote:
This seems like a perfect candidate for apaches rewrite rules

Why not have a single servlet (or more if required) to handle displaying
blogs, and use a rewrite rule to internally rewrite say

http://yourserver/blog/username to http://yourserver/wk/blog?user=username

Then you can have the blog servlet automatically set up templates etc based
on usernames prefs



----- Original Message -----
From: "Jerome Kerdreux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 1:47 AM
Subject: [Webware-discuss] Large scale webware


  
Hi all :)

I have been a little bit off since a while.


I get several questions:

- I'm wondering how i can do some large website w/ webware. While i'm
  working on a blog system (which tend to be a CMS more than a blog)
  I face to a issue. I get ~ one context per website, and he think
  this will trouble the box in a long running process. This is what
  i get:
  - webware-instance/AlineaLib (which is the core lib's of the sytem)
  - webware-instance/phil ( a friend blog )
  - webware-instance/jkx  (mine ..)
  - and so on .
  I do that because i want every user to have it's own website.
  (they can for example want to tweak the templates or .. disable
   some kind of functionnalities like 'post comments', or write
   some custom servlet)
  I think i gonna run into trouble since a lot of servlet mean
  a lot of cache and so-one .. I don't remember how servlet caching
  is done by webware ..

  What do you think i should do ? in a typically php installation
  i will have only a bunch of folder and no matter w/ this cache
  (I need cache anyway since i use SQLobject + ZPT )
  In a zope way of life, i will get a python eating a lot of memory
  but i doesn't get trouble w/ cache too ..
  What in webware ?
  How should i write the SQLobject code since i don't want to eat
  to much connection on the SQL server, but i don't want to close
  it at each connection ..


- I think people w/ a lot of servlet get the same issue ?? have
  you ever get this ?

- How much memory does the standard webware eat on your plateforme ?
  i get it working and even without any request it eat 30Mb on my
  current system. (that why i try to share a webware-instance accross
  users)




Bye Bye ?..



--
Jérôme Kerdreux


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&opÌk
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss


    



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
  


-- 
-Aaron
http://www.MetroNY.com/
If the car industry behaved like the computer industry 
over the last 30 years,  a Rolls-Royce would cost $5, 
get 300 miles per gallon, and blow up once a year 
killing all passengers inside.

Reply via email to