From f9eb141f78a7c499f7e3f5b63f9b98c993eea951 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 3 Apr 2011 23:03:24 +0200 Subject: [PATCH] replace tileserver cgi with mod_rewrite rules --- apache-gmap.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-gmap.conf b/apache-gmap.conf index ab32cbb..c6e2e27 100644 --- a/apache-gmap.conf +++ b/apache-gmap.conf @@ -3,5 +3,8 @@ Alias /gmap /srv/google-map-tiles AddHandler cgi-script .pl Options +ExecCGI +Indexes - ErrorDocument 404 /gmap/tiles/notiles.png + + RewriteEngine on + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule /tiles/.*\.png$ /gmap/tiles/notiles.png [L] -- 2.20.1