From nginx Wed Jan 23 16:31:27 2008 From: Dave Dash
Date: Wed, 23 Jan 2008 16:31:27 +0000 To: nginx Subject: Re: PATH_INFO Message-Id: <2E756723-5689-49BD-9742-75467B36EE3D () davedash ! com> X-MARC-Message: https://marc.info/?l=nginx&m=120127283411352 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Apple-Mail-14--539612197" --Apple-Mail-14--539612197 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Anibal, I am using a FastCGI server that nginx calls. Right now (through =20 regexp) it takes the URL and figures out what part is the script =20 (blah.php) and what's the pathinfo (/q/string as in http://nginx/=20 blah.php/q/string). But I need to decode the PATH_INFO before I pass it as a fast_Cgi =20 param. is their a way to do that? On Jan 24, 2008, at 7:25 AM, An=EDbal Rojas wrote: > Dave, > > There is no support for CGI in Nginx. You have to FastCGI or =20 > HTTP (proxy) > > -- > An=EDbal Rojas > http://hasmanydevelopers.com > http://rubycorner.com > http://anibal.rojas.com > > On Jan 24, 2008 2:40 AM, Dave Dash wrote: >> PATH_INFO is supposed to be decoded by the server and then passed to >> the CGI application. >> >> How can I do that from nginx. My PATH_INFO never gets decoded and it >> throws off my CGI scripts. >> >> best, >> >> dd >> > Dave Dash Eat smarter... www.reviewsby.us --Apple-Mail-14--539612197 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Anibal,

I am using = a FastCGI server that nginx calls. =A0Right now (through regexp) it = takes the URL and figures out what part is the script (blah.php) and = what's the pathinfo (/q/string as in http://nginx/blah.php/q/string= ).

But I need to decode the PATH_INFO before I = pass it as a fast_Cgi param. =A0is their a way to do = that?

On Jan 24, 2008, at 7:25 AM, An=EDbal = Rojas wrote:

Dave,

=A0 =A0 There is no support for = CGI in Nginx. You have to FastCGI or HTTP (proxy)

An=EDbal Rojas
http://hasmanydevelopers.com

On Jan = 24, 2008 2:40 AM, Dave Dash <dd@davedash.com> wrote:
=
PATH_INFO is supposed to be = decoded by the server and then passed to
the CGI = application.

How can I do that from nginx.=A0 My PATH_INFO never gets = decoded and it
throws off my CGI = scripts.

best,

dd



Dave = Dash
Eat smarter... www.reviewsby.us


=

= --Apple-Mail-14--539612197--