I have two questions related to this. (Hope you don't mind if I borrow your thread...)

1.
Say you're serving a number of sites on one server and you need to add and remove sites as you go along. You've decided that you want one server instance for each webapp... Is there a way of centralising the starting and stopping of the appservers? Or do you have to have one system startup script (as in init.d) for each server instance?


It seems like with this approach, there's a lot of stuff you need to keep track of for each new site: Apache virtual host, Appserver port number, Webkit workdir, startup script (rc/init.d)... Well, maybe that's just me being lazy - but the multiple-startup-script part seems awkward to me.


2.
If you, on the other hand, would place multiple sites under one server instance, the lib directory could easily become crowded, and there may also be namespace conflicts... Is there a way to have one lib directory for each context (other than making subdirectories of lib of course)? Should i NOT use lib under these circumstances?


(For example, I wanted to use the wiki app from wiki.w4py.org. It's designed to be run as a separate webapp, but I thought maybe I could install it as a context side-by-side with my main site context. I looked in the lib directory of the wiki and thought: not a good idea.)


Sorry for the long post. Quite obviously, I'm also a fresh new user of Webware and Python. Hope someone out there can give me a few hints!


Regards,
Hannes Lilljequist



2004-09-09 kl. 07.05 skrev jose:

Dear Eric,

Thanks for the confirmation, that's what I thought was going on, I just
wanted to be sure

Jose

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric
Radman
Sent: Wednesday, September 08, 2004 6:44 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Webware-discuss] MakeAppWorkDir


On 16:38 Wed 08 Sep , [EMAIL PROTECTED] wrote:
Dear Webware group,

I've got what I hope is a dumb question, but I would just like to have

it confirmed.  I just recently started using MakeAppWorkDir to create
different working apps for my different contexts (up until this point
I have just used the main webware install as my working app, but it is

filled up with to many contexts and I want to organize things a little

better).

This is also better from a security perspective.

My question is, in order for all the application servers to run on the

same machine, I need to have each one listening on a different port
correct?

Correct.

And if so how does this work in a multiuser Linux environment where
another user might be running webware on the same port that I just set

mine to?

This works because once a user's instance of WebKit (or any other app) listening on a specific port it's locked, so other users only get an error when they try to step on it. If another user knows that you stopped your instance of WebKit then they can steal you're port.

--
Eric Radman  |  http://eradman.com




------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to