---
title: "tilecache(win)"
author: "cjx186"
date: "2012-11-13T19:59:12Z"
tags: []
categories: ["非技术"]
slug: "tilecache-win"
draft: false
lastmod: "2012-11-13T19:59:12Z"
id: 1724887
url: "https://xml.iteye.com/blog/1724887"
---

```httpd.conf
LoadModule python_module modules/mod_python.so
```


```httpd.conf
在
<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

> [cache]
> type=DiskCache
> base=c:\tilecache\