| 133 | |
| 134 | = ScriptAlias = |
| 135 | * Apache/2.2.22 |
| 136 | * /home/mitty/env.cgi |
| 137 | {{{#!perl |
| 138 | #!/usr/bin/perl -w |
| 139 | print "Content-Type: text/plain\r\n\r\n"; |
| 140 | |
| 141 | foreach $key (sort(keys %ENV)) { |
| 142 | print "$key = $ENV{$key}\n"; |
| 143 | } |
| 144 | }}} |
| 145 | |
| 146 | ||= Apache Conf =||= wget https://lab.mitty.jp/env/ =||= wget https://lab.mitty.jp/env/hoge =|| |
| 147 | ||ScriptAlias /env /home/mitty/env.cgi||PATH_INFO = / [[br]] PATH_TRANSLATED = /path/to/docroot/index.html [[br]] QUERY_STRING = [[br]] REQUEST_METHOD = GET [[br]] REQUEST_URI = /env/ [[br]] SCRIPT_FILENAME = /home/mitty/env.cgi [[br]] SCRIPT_NAME = /env [[br]] SCRIPT_URI = https://lab.mitty.jp/env/ [[br]] SCRIPT_URL = /env/||PATH_INFO = /hoge [[br]] PATH_TRANSLATED = /path/to/docroot/hoge [[br]] QUERY_STRING = [[br]] REQUEST_METHOD = GET [[br]] REQUEST_URI = /env/hoge [[br]] SCRIPT_FILENAME = /home/mitty/env.cgi [[br]] SCRIPT_NAME = /env [[br]] SCRIPT_URI = https://lab.mitty.jp/env/hoge [[br]] SCRIPT_URL = /env/hoge|| |
| 148 | ||ScriptAlias /env /home/mitty/env.cgi/||PATH_INFO = / [[br]] PATH_TRANSLATED = /path/to/docroot/index.html [[br]] QUERY_STRING = [[br]] REQUEST_METHOD = GET [[br]] REQUEST_URI = /env/ [[br]] SCRIPT_FILENAME = /home/mitty/env.cgi [[br]] SCRIPT_NAME = /env [[br]] SCRIPT_URI = https://lab.mitty.jp/env/ [[br]] SCRIPT_URL = /env/||PATH_INFO = /hoge [[br]] PATH_TRANSLATED = /path/to/docroot/hoge [[br]] QUERY_STRING = [[br]] REQUEST_METHOD = GET [[br]] REQUEST_URI = /env/hoge [[br]] SCRIPT_FILENAME = /home/mitty/env.cgi [[br]] SCRIPT_NAME = /env [[br]] SCRIPT_URI = https://lab.mitty.jp/env/hoge [[br]] SCRIPT_URL = /env/hoge|| |
| 149 | ||ScriptAlias /env/ /home/mitty/env.cgi||QUERY_STRING = [[br]] REQUEST_METHOD = GET [[br]] REQUEST_URI = /env/ [[br]] SCRIPT_FILENAME = /home/mitty/env.cgi [[br]] SCRIPT_NAME = /env/ [[br]] SCRIPT_URI = https://lab.mitty.jp/env/ [[br]] SCRIPT_URL = /env/||404 Not Found [[br]] {{{script not found or unable to stat: /home/mitty/env.cgihoge}}}|| |
| 150 | ||ScriptAlias /env/ /home/mitty/env.cgi/||PATH_INFO = / [[br]] PATH_TRANSLATED = /path/to/docroot/index.html [[br]] QUERY_STRING = [[br]] REQUEST_METHOD = GET [[br]] REQUEST_URI = /env/ [[br]] SCRIPT_FILENAME = /home/mitty/env.cgi [[br]] SCRIPT_NAME = /env [[br]] SCRIPT_URI = https://lab.mitty.jp/env/ [[br]] SCRIPT_URL = /env/||PATH_INFO = /hoge [[br]] PATH_TRANSLATED = /path/to/docroot/hoge [[br]] QUERY_STRING = [[br]] REQUEST_METHOD = GET [[br]] REQUEST_URI = /env/hoge [[br]] SCRIPT_FILENAME = /home/mitty/env.cgi [[br]] SCRIPT_NAME = /env [[br]] SCRIPT_URI = https://lab.mitty.jp/env/hoge [[br]] SCRIPT_URL = /env/hoge|| |