Re: PATH_INFO? PATH_TRANSLATED?

"clemensF" <[email protected]>
Newsgroups gmane.network.mathopd
Organization no
Message-ID <[email protected]>
> clemensF:

> i need both PATH_INFO and PATH_TRANSLATED for my cgi's.  the source in

ok, i got these set in the cgi's environment, but it sux as far as i want
it to happen.  i want to set up a wiki, moinmoin in my case.  there will be
not much static content served, wiki's are cgi driven.

the problem:

  http://localhost:8887/moin/cgi-bin/moin.cgi

which is the URL the cgi is reachable under.  everything else on the page
created by that cgi looks like this:

  http://localhost:8887/moin/cgi-bin/FrontPage

i've had the same problem with twiki (a perl implementation) back then. 
now both twiki and moinmoin want PATH_INFO set in their environment, but i
get this $env only when i give it URI's like:

  http://localhost:8887/moin/cgi-bin/moin.cgi/habla/makara

when "PATH_INFO=/habla/makara" appears in the environment.  this makes
sense to me, but see above, i need PATH_INFO even when that cgi isn't
mentioned, and the way things look to me, this is the "apache-standard".

so what i need is some sort of rewriting.  transform

  http://localhost:8887/moin/cgi-bin/FrontPage

into

  http://localhost:8887/moin/cgi-bin/moin.cgi?FrontPage

                                             ?
clemens fischer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.