diff options
author | Elan Ruusamäe <glen@delfi.ee> | 2008-01-21 08:21:20 +0000 |
---|---|---|
committer | Elan Ruusamäe <glen@delfi.ee> | 2008-01-21 08:21:20 +0000 |
commit | cde46f6a3d448b5774108b147fbadb03581ce3a2 (patch) | |
tree | bf7cd99292334beb09e7dada1c493c5f21567a74 /tests/docroot | |
parent | 022742a5ae9b14ad5e26387576b80e49c457613d (diff) | |
download | lighttpd-git-cde46f6a3d448b5774108b147fbadb03581ce3a2.tar.gz |
- support chained proxies in mod_extforward (#1528)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2061 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/docroot')
-rwxr-xr-x | tests/docroot/www/ip.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/docroot/www/ip.pl b/tests/docroot/www/ip.pl index b86cfb5a..6c9e993a 100755 --- a/tests/docroot/www/ip.pl +++ b/tests/docroot/www/ip.pl @@ -2,4 +2,12 @@ print "Content-Type: text/html\r\n\r\n"; print $ENV{'REMOTE_ADDR'}; +if ($ENV{'QUERY_STRING'} eq 'info') { + print "\nF:",$ENV{'HTTP_X_FORWARDED_FOR'},"\n"; + + while (my($key, $value) = each %ENV) { + printf "%s => %s\n", $key, $value; + } +} + 0; |