Trying to run TileStache remotely

371 views
Skip to first unread message

Jason Lee

unread,
Aug 10, 2011, 10:44:06 AM8/10/11
to Tilestache
Hi,
I have successfully installed TileStache on my Ubuntu 10.10 machine
and running locally using the supplied web server and WSGI app.
However, due to my lack of knowledge/experience, I am unable to get it
running over mod_python. I have mod_python installed and a simple
"Hello World" python application working but when I change the Apache
config to use "PythonHandler TileStache::modpythonHandler", Apache
restart, and using the supplied "example" data (which works fine over
local web server), I get a 404 Not Found error.

My Apache config looks like this :-
================================
<Directory /var/www/test_tilestache>
AddHandler mod_python .py
PythonHandler TileStache::modpythonHandler
PythonOption config /etc/tilestache.cfg
</Directory>
================================

My tilestache.cfg :-
================================
{
"cache":
{
"name": "Disk",
"path": "/tmp/stache",
"umask": "0000",
"dirs": "portable"
},
"layers":
{
"example":
{
"provider": {"name": "mapnik", "mapfile": "/home/myaccount/
tilestache/examples/style.xml"},
"projection": "spherical mercator"
}
}
}
================================

I am testing using "http://myserver/test_tilestache/example/0/0/0.png"
and even "http://myserver/test_tilestache/example/preview.html"

Any help or advice much appreciated.

Jason

Jinha Jung

unread,
Dec 6, 2011, 9:54:51 PM12/6/11
to tiles...@googlegroups.com
I am having the same issue, and really want to know the solution. BUMP!!!

Michal Migurski

unread,
Dec 7, 2011, 1:34:29 PM12/7/11
to tiles...@googlegroups.com
On Dec 6, 2011, at 6:54 PM, Jinha Jung wrote:

> I am having the same issue, and really want to know the solution. BUMP!!!


Can you be more specific, please?

-mike.

----------------------------------------------------------------
michal migurski- mi...@stamen.com
415.558.1610

Jinha Jung

unread,
Dec 7, 2011, 4:21:37 PM12/7/11
to Tilestache
As mentioned in the original post, when I initially configured using /
etc/tilestache.cfg file, and run server using tilestache_server.py, I
can see tiles are served okay locally when i checked
http://127.0.0.1:8080/layer_name/preview.html.
However, the problem is when I tried to configure TileStache using
Apache + mod_python. I added the same configuration in the original
post, and restarted apache, and when I connected using full name like
http://domain.name/tilestache_dir/layer_name/preview.html, I just
encounter Http 404 not found error.
Now I followed CGI method in the documentation, and it is working in
that way, but I would like to run the service through mod_python since
it sound like I would get better performance using mod_python?

Thanks for your willing to help. :)

On Dec 7, 1:34 pm, Michal Migurski <m...@stamen.com> wrote:
> On Dec 6, 2011, at 6:54 PM, Jinha Jung wrote:
>
> > I am having the same issue, and really want to know the solution. BUMP!!!
>
> Can you be more specific, please?
>
> -mike.
>
> ----------------------------------------------------------------

> michal migurski- m...@stamen.com
>                  415.558.1610

cameron_prebble

unread,
Dec 9, 2011, 9:08:05 PM12/9/11
to Tilestache
Try simply adding something like "tiles.py" into the path e.g:http://
myserver/test_tilestache/tiles.py/example/0/0/0.png
or
http://domain.name/tilestache_dir/tiles.py/layer_name/preview.html

Doing this managed to work for me.

On Dec 8, 10:21 am, Jinha Jung <hamd...@gmail.com> wrote:
> As mentioned in the original post, when I initially configured using /
> etc/tilestache.cfg file, and run server using tilestache_server.py, I

> can see tiles are served okay locally when i checkedhttp://127.0.0.1:8080/layer_name/preview.html.


> However, the problem is when I tried to configure TileStache using
> Apache + mod_python. I added the same configuration in the original

> post, and restarted apache, and when I connected using full name likehttp://domain.name/tilestache_dir/layer_name/preview.html, I just

Reply all
Reply to author
Forward
0 new messages