[Tilecache] TileCache problems with mod_python

Yves Moisan yves.moisan at boreal-is.com
Mon May 11 14:42:38 EDT 2009


> 
> 
> My httpd.conf looks like this:
> # --------------------- TILECACHE 2.10 ---------------------
> 
> 
> Alias /tc/  "C:/Apache Group/Apache2/htdocs/tilecache210/"
> <Directory  "C:/Apache Group/Apache2/htdocs/tilecache210/">
> Options +ExecCGI +FollowSymLinks
>    AllowOverride Limit
> ExpiresActive on
> ExpiresDefault "now plus 6 hours"
> AddHandler python-program .py
> PythonHandler TileCache.Service 
> PythonOption TileCacheConfig 'C:/Apache
> Group/Apache2/htdocs/tilecache210/tilecache.cfg'
> PythonPath "['C:\Apache Group\Apache2\htdocs\tilecache210
> \Tilecache']+sys.path"
> PythonDebug On
> </Directory>
> # --------------------- TILECACHE 2.10 END ---------------------

Here's a setup that works for me

# CGI MODE 
<Directory "/ms4w/Apache/tilecache-2.03/">
    AllowOverride None
    Options None
    Order Deny,Allow
    Allow from all 
</Directory>

# MOD_PYTHON MODE

<Directory "/ms4w/Apache/tilecache-2.03/">
        AddHandler python-program .py
     #   PythonPath "['/ms4w/Apache/tilecache-2.03/tilecache'] +
sys.path "
        PythonHandler TileCache.Service
        PythonOption TileCacheConfig
"/ms4w/Apache/tilecache-2.03/tilecache.cfg"
    </Directory>

Notice the PythonPath directive is actually commented out.  Apache on
windows seems to only care about the registry variables to find its
Python Path.  At least that's what I found.

HTH,

Yves
> 




More information about the Tilecache mailing list