[Tilecache] Allowing multiple users / multiple CFG files

Guillaume Sueur no-reply at neogeo-online.net
Wed Feb 25 07:36:37 EST 2009


Hi Matthew,



I guess you can achieve this various ways :
1. If you just need various settings for a specific layer : you can set
as many layer blocks as you want in the .cfg file. Just have different
names for them. And build your OpenLayers client to point to the one(s)
you want.

2. Write different .cfg files and give a specific url to each of these
configurations. You need to use mod_python for that :	

Alias tilecache1 /var/www/tilecache/
<Directory /var/www/tilecache/>
    AddHandler python-program .py
    PythonHandler TileCache.Service
    PythonOption TileCacheConfig /var/www/tilecache/tilecache.cfg
</Directory>
Alias tilecache2 /var/www/tilecache/
<Directory /var/www/tilecache/>
    AddHandler python-program .py
    PythonHandler TileCache.Service
    PythonOption TileCacheConfig /var/www/tilecache/tilecache2.cfg
</Directory>

and then make OpenLayers point to the different urls
(http://your_server/tilecache1 and http://your_server/tilecache2)

3. Have different tilecache dirs for use with cgi :
Alias tilecache1 /var/www/tilecache1/
<Directory /var/www/tilecache1>
     AddHandler cgi-script .cgi
     Options +ExecCGI
</Directory>
Alias tilecache2 /var/www/tilecache/
<Directory /var/www/tilecache2>
     AddHandler cgi-script .cgi
     Options +ExecCGI
</Directory>

that can work too, but is less clean as it makes you create several
tilecache dir. Updates will be harder.

Probably some other solutions exist too

Hope that helps

Guillaume

Matthew Doyle a écrit :
> Hi All,
> 
> Many work colleagues who have seen OpenLayers and TileCache in action are
> very impressed and as such they wish to use it in their future projects.
> 
> Is it possible set up TileCache to allow multiple users? If so, how would i
> go about this? Do i need multiple versions of Tilecache on the same machine,
> or is there a way to configure one single version of TileCache to allow
> different .cfg files?
> 
> Most people want different extents and maxResolutions, so we wouldn't be
> able to share the same configurations with others. 
> 
> Many thanks in advance,
> Matt



More information about the Tilecache mailing list