LoadModule python_module modules/mod_python.so
在
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
下加入
Alias /tilecache/ "C:/tilecache-2.01/"
<Directory "C:/tilecache-2.01/">
AddHandler mod_python .py
AddHandler python-program .py
PythonHandler TileCache.Service
PythonOption TileCacheConfig C:/tilecache-2.01/tilecache.cfg
PythonDebug On
</Directory>
1.修改tilecache-2.01目录下tilecache.cgi第一行为"#!C:/Python24/python.exe –u",注意"-u"两个字符之间没有空格。
2.修改tilecache.cfg
[quote][cache]
type=DiskCache
base=c:\tilecache\[/quote]