degal-lighttpd.conf
author terom
Sat, 22 Dec 2007 21:31:01 +0000
changeset 18 46536daf9e04
permissions -rw-r--r--
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
# prefix for degal's URLs, no trailing slash
var.degal-url = "/photos"

# filesystem path to degal, no trailing slash
var.degal-path = "C:/Dokumente und Einstellungen/me/Eigene Dateien/python/degal"

url.rewrite-once = (
#    "^" + var.degal-url + "/s/([^/]+)(/.*)?$" => var.degal-path + "/shorturl.py?key=$1&index=$2",
    "/this" => "/photos/index.html"
#    "^/photos/s/([^/]+)(/.*)?$" => "/photos/index.html", # "/shorturl.py?key=$1&index=$2",
#    "^" + var.degal-url + "/series/([^/]+)/(.*)$" => var.degal-path + "/series.py?keys=$1&index=$2"
)

cgi.assign = (
    ".py" => "python"
)