Re: using spyce with multiple sites on some server?

"Jonathan Ellis" <[email protected]> Tue, 12 Jun 2007 21:01:45 -0700
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
On Tue, 12 Jun 2007 16:19:46 -0700, spyce-3j6+YF/[email protected] said:
> I've been using Spyce 2.0.3 for quite some time on a single site. 
> However, I'm starting to work on another site and would like to use the
> same spyce server to handle the additional site.  The 2 sites have  
> different base (aka root) directories so I'm not sure what the best
> practice is in terms of modifying the spyceconf.py file.  
> 
> Currently, the root_dir option in spyceconf.py points to the original
> site such that all files will be searched from their.  However, since the
> new site lives elsewhere this root_dir won't work for the second site.  
> 
> How does one normally resolve this situation?  
> 
> Should I run 2 different spyce proxy servers (each pointing to it's own
> spyceconf.py file using the --conf option to spyceCmd.py)?  I'm using
> Apache to serve non-spyce pages and each site has a unique virtual host.  

Yes.  If you follow the layout created by spyceProject this is easy;
each site has its own config.py that imports the default from spyceconf
and can diverge from there.

-Jonathan

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/