<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009>I just found a way to emulate the behaviour using
wsgiref:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009>...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009>from server import wsgiApp</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009>import
os<BR>os.chdir('d:/python/tilecacheconfig_int/')</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009>application = wsgiApp<BR></DIV>
<DIV></SPAN></FONT><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009></SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=372435211-10112009>Anyway I would appreciate any comments or
help related to the wsgi configuration for mod_wsgi.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=372435211-10112009></SPAN></FONT> </DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=es dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> tilecache-bounces@openlayers.org
[mailto:tilecache-bounces@openlayers.org] <B>En nombre de
</B>manel.clos@ajgirona.cat<BR><B>Enviado el:</B> martes, 10 de noviembre de
2009 10:45<BR><B>Para:</B> tilecache@openlayers.org<BR><B>Asunto:</B>
[Tilecache] Running TileCache Config under Apache +
mod_wsgi<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2>Hi
all,</FONT></SPAN></DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2>I've tried to run
TileCache Config under Apache, using mod_wsgi, but I can't get it to read the
tilecacheconfig config.cfg file, I always get the "No section 'config'" even
when providing the full path to config.cfg. As it is running under Windows I've
tried both slash and double backslash.</FONT></SPAN></DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2>Any help
appreciated!</FONT></SPAN></DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2>Here is the file
provided to WSGIScriptAlias:</FONT></SPAN></DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2>import os,
sys<BR>base_path, tail = os.path.split(__file__)<BR><SPAN
class=014343809-10112009><FONT face=Arial size=2># include tilecacheconfig in
path</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2>if not base_path in
sys.path:<BR> sys.path.append(base_path)</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2><SPAN
class=014343809-10112009><FONT face=Arial size=2># include tilecache in
path</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2><SPAN
class=014343809-10112009></SPAN>base_path, tail =
os.path.split(base_path)<BR>base_path = os.path.join(base_path,
'tilecache_int')<BR>if not base_path in sys.path:<BR>
sys.path.append(base_path)</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2>from server import
wsgiApp</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=014343809-10112009><FONT face=Arial size=2>application =
wsgiApp</FONT></SPAN></DIV></BODY></HTML>