[Tilecache] Tilecache in mod_python
Jacolin Yves
yjacolin at free.fr
Wed Apr 16 11:33:14 EDT 2008
Hi,
I am trying to setup my tilecache config in mod_python. It is working in cgi
mode. README file tell me to add this to my apache config, I did it in my
vhost file:
<VirtualHost *>
ServerAdmin webmaster at localhost
ServerAlias www.lpdipro.dev.local
ServerName www.lpdipro.dev.local.yves
ExpiresActive on
ExpiresDefault "now plus 6 hours"
[..]
<Directory "/var/www/dev/lpdipro/lpdipro/Carto/tilecach-1.9/">
AddHandler python-program .py
PythonHandler TileCache.Service
PythonOption
TileCacheConfig /var/www/dev/lpdipro/lpdipro/Carto/cgi/tilecache.cfg
PythonDebug On
</Directory>
</VirtualHost>
I restart Apache and when I request this url:
http://www.lpdipro.dev.local.yves/tilecache.py?LAYERS=orthophoto&....
I get:
"Not Found
The requested URL /tilecache.py was not found on this server.
Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch10 Server
at www.lpdipro.dev.local.yves Port 80"
As you can see mod_python is enabled. It seems that my apache system do not
retrieve the .py extension and sendit to the python-program.
Python: 2.4.4
mod_python: 3.2.10
Any idea where the issue come from?
Best regards,
Y.
--
Yves Jacolin
---
http://softlibre.gloobe.org
More information about the Tilecache
mailing list