[Tilecache] Tilecache in mod_python
Jacolin Yves
yjacolin at free.fr
Wed Apr 16 11:56:31 EDT 2008
Le Wednesday 16 April 2008 17:33:14 Jacolin Yves, vous avez écrit :
> 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.
Thanks to crschmidt, I succeed to setup my tc in mod_python. My problem come
from that I put my TC directory out of my DocumentRoot, so I have now
something like:
DocumentRoot /var/www/dev/lpdipro/lpdipro/static_web/htdocs/
<Directory "/var/www/dev/lpdipro/lpdipro/static_web/htdocs/tilecache-1.9/">
AddHandler python-program .py
PythonHandler TileCache.Service
PythonOption
TileCacheConfig /var/www/dev/lpdipro/lpdipro/Carto/cgi/tilecache.cfg
PythonDebug On
</Directory>
Thanks again :)
Y.
--
Yves Jacolin
---
http://softlibre.gloobe.org
More information about the Tilecache
mailing list