[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nginx
Subject:    Re: PATH_INFO
From:       Dave Dash <dd () davedash ! com>
Date:       2008-01-23 16:31:27
Message-ID: 2E756723-5689-49BD-9742-75467B36EE3D () davedash ! com
[Download RAW message or body]

Anibal,

I am using a FastCGI server that nginx calls.  Right 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.  is their a way to do that?

On Jan 24, 2008, at 7:25 AM, Aníbal Rojas wrote:

> Dave,
>
>     There is no support for CGI in Nginx. You have to FastCGI or  
> HTTP (proxy)
>
> --
> Aníbal Rojas
> http://hasmanydevelopers.com
> http://rubycorner.com
> http://anibal.rojas.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.  My PATH_INFO never gets decoded and it
>> throws off my CGI scripts.
>>
>> best,
>>
>> dd
>>
>

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




[Attachment #3 (unknown)]

<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; "> Anibal,<div><br class="webkit-block-placeholder"></div><div>I am using a FastCGI \
server that nginx calls.  Right 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 <a \
href="http://nginx/blah.php/q/string">http://nginx/blah.php/q/string</a>).</div><div><br></div><div>But I \
need to decode the PATH_INFO before I pass it as a fast_Cgi param.  is their a way to do \
that?</div><div><br><div><div>On Jan 24, 2008, at 7:25 AM, Aníbal Rojas wrote:</div><br \
class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; ">Dave,</div><div style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">    \
</span>There is no support for CGI in Nginx. You have to FastCGI or HTTP (proxy)</div><div \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
">--</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Aníbal \
Rojas</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a \
href="http://hasmanydevelopers.com">http://hasmanydevelopers.com</a></div><div style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a \
href="http://rubycorner.com">http://rubycorner.com</a></div><div style="margin-top: 0px; margin-right: \
0px; margin-bottom: 0px; margin-left: 0px; "><a \
href="http://anibal.rojas.com">http://anibal.rojas.com</a></div><div style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Jan 24, 2008 2:40 \
AM, Dave Dash &lt;<a href="mailto:dd@davedash.com">dd@davedash.com</a>&gt; wrote:</div> <blockquote \
type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
">PATH_INFO is supposed to be decoded by the server and then passed to</div><div style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the CGI application.</div><div \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">How \
can I do that from nginx.<span class="Apple-converted-space">  </span>My PATH_INFO never gets decoded and \
it</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">throws \
off my CGI scripts.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: \
0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">best,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; ">dd</div><div style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </blockquote><div style="margin-top: \
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> \
</blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; \
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: \
normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; \
text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: \
auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span \
class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); \
font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; \
text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; \
widows: 2; word-spacing: 0px; "><div>Dave Dash</div><div>Eat smarter... <a \
href="http://www.reviewsby.us">www.reviewsby.us</a></div><div><br \
class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span> \
</div><br></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic