diff options
author | Arno Töll <arno@debian.org> | 2011-07-03 23:55:35 +0000 |
---|---|---|
committer | Arno Töll <arno@debian.org> | 2011-07-03 23:55:35 +0000 |
commit | 8199ae2d979736600ad452dfb722d503b14543e9 (patch) | |
tree | bef2945d3e3c22339f65068fe34e9a9eb31d01d5 /doc/outdated/redirect.txt | |
parent | fd61706305f6bece48a5839ac071cd73e749616e (diff) | |
download | lighttpd-8199ae2d979736600ad452dfb722d503b14543e9.tar.gz |
Import 1.4.29
Diffstat (limited to 'doc/outdated/redirect.txt')
-rw-r--r-- | doc/outdated/redirect.txt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/outdated/redirect.txt b/doc/outdated/redirect.txt new file mode 100644 index 0000000..ec54731 --- /dev/null +++ b/doc/outdated/redirect.txt @@ -0,0 +1,47 @@ +=============== +URL Redirection +=============== + +-------------------- +Module: mod_redirect +-------------------- + +:Author: Jan Kneschke +:Date: $Date: 2004/08/29 09:43:49 $ +:Revision: $Revision: 1.1 $ + +:abstract: + url redirection + +.. meta:: + :keywords: lighttpd, redirect + +.. contents:: Table of Contents + +Description +=========== + +... + +Options +======= + +url.redirect + redirects a set of URLs externally + + e.g. :: + + url.redirect = ( "^/show/([0-9]+)/([0-9]+)$" => "http://www.example.org/show.php?isdn=$1&page$2", + "^/get/([0-9]+)/([0-9]+)$" => "http://www.example.org/get.php?isdn=$1&page$2" ) + + # make a external redirect + # from any www.host (with www.) to the host (without www.) + $HTTP["host"] =~ "^www\.(.*)" { + url.redirect = ( "^/(.*)" => "http://%1/$1" ) + } + +Warning +======= + +Do NOT use mod_redirect to protect specific urls, as the original url passed from the client +is matched against your rules, for example strings like "/abc/../xyz%2f/path". |