diff --git a/lighttpd/lighttpd.conf b/lighttpd/lighttpd.conf index 4bf5183..7598c9e 100644 --- a/lighttpd/lighttpd.conf +++ b/lighttpd/lighttpd.conf @@ -333,6 +333,11 @@ $HTTP["url"] =~ "\.pdf$" { #$HTTP["host"] =~ "^www\.(.*)" { # url.redirect = ( "^/(.*)" => "http://%1/$1" ) #} +$HTTP["host"] =~ "^(.*)$" { + url.redirect = ( + "^/scoring/highscores.html" => "http://%1/scoring/high.cgi?l=40" + ) +} ## ## which extensions should not be handle via static-file transfer diff --git a/lighttpd/modules.conf b/lighttpd/modules.conf index 2087947..b4cf170 100644 --- a/lighttpd/modules.conf +++ b/lighttpd/modules.conf @@ -46,7 +46,7 @@ server.modules = ( # "mod_alias", # "mod_auth", # "mod_evasive", -# "mod_redirect", + "mod_redirect", # "mod_rewrite", "mod_setenv", # "mod_usertrack", diff --git a/py/recorder.py b/py/recorder.py index 7c306df..b440a4e 100755 --- a/py/recorder.py +++ b/py/recorder.py @@ -34,9 +34,8 @@ for game in rlgall.gamelist: # All the databases have been updated. Now make the pages. -# Currently the high scores for all the games are on the same page. If -# they split up, this will have to change to a Game method. -rlgall.highpage() +# The high page has been replaced with a CGI script. +#rlgall.highpage() for name in updatenames: rlgall.playerpage(name) diff --git a/py/rlgall.py b/py/rlgall.py index 0bb125b..e54d6f2 100644 --- a/py/rlgall.py +++ b/py/rlgall.py @@ -45,7 +45,7 @@ tblend = '\n' pend = """