Changes between Version 27 and Version 28 of TipAndDoc/network/httpd


Ignore:
Timestamp:
Jun 14, 2013 12:23:25 AM (11 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/network/httpd

    v27 v28  
    142142    print "$key = $ENV{$key}\n"; 
    143143} 
     144 
     145print "--------------------\n"; 
     146 
     147use CGI; 
     148my $cgi = CGI->new; 
     149print "url => ", $cgi->url(), "\n"; 
     150print "url(absolute) => ", $cgi->url(-absolute => 1), "\n"; 
     151print "url(base) => ", $cgi->url(-base => 1), "\n"; 
    144152}}} 
    145153 
    146154||= Apache Conf =||= wget https://lab.mitty.jp/env/ =||= wget https://lab.mitty.jp/env/hoge =|| 
    147 ||ScriptAlias /env /home/mitty/env.cgi [[br]] ScriptAlias /env /home/mitty/env.cgi/ [[br]] 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 ||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}}}|| 
     155||ScriptAlias /env /home/mitty/env.cgi [[br]] ScriptAlias /env /home/mitty/env.cgi/ [[br]] 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/ [[br]] -------------------- [[br]] url => https://lab.mitty.jp/env [[br]] url(absolute) => /env [[br]] url(base) => https://lab.mitty.jp||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 [[br]] -------------------- [[br]] url => https://lab.mitty.jp/env [[br]] url(absolute) => /env [[br]] url(base) => https://lab.mitty.jp|| 
     156||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/ [[br]] -------------------- [[br]] url => https://lab.mitty.jp/env/ [[br]] url(absolute) => /env/ [[br]] url(base) => https://lab.mitty.jp||404 Not Found [[br]] {{{script not found or unable to stat: /home/mitty/env.cgihoge}}}||