W3C home > Mailing lists > Public > www-talk@w3.org > March to April 1995

Re: CGI PATH_TRANSLATED variable?

From: Christian Mogensen <mogens@cs.stanford.edu>
Date: Thu, 23 Mar 1995 03:12:04 -0800
Message-Id: <9503231112.AA25377@Xenon.Stanford.EDU>
To: mwm@contessa.phone.net
Cc: Multiple recipients of list <www-talk@www10.w3.org>
>Yes, but note that this assumes that all your html documents live in
>one tree. What if that's not the case? In particular, what if your
>server could hand either of /var/web/htdocs/foo.html or
>/var/web/htdocs-new/foo.html if someone tryed to GET
>http://yourserver/foo.html?

What is the decision variable - in any case, use the doc that would have 
been returned had the document request been for http://server/foo.html
instead of being the cgi-script

>> the request using PATHINFO .html would be
>>    http://yourserver/cgi-bin/script/foo.html
>>       PATH_INFO= /foo.html
>>       PATH_TRANSLATED= /var/web/htdocs/foo.html
>
>Should PATH_TRANSLATED be /var/web/{htdocs,htdocs-new}/foo.html for
>the case I've got?

Yes.  

Christian "webhead <*>"
Received on Thursday, 23 March 1995 06:12:12 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:16 UTC