nginx rewrite help

Kevin Castiglione kevincastiglione at gmail.com
Fri Jun 19 16:53:43 MSD 2009


On Thu, Jun 18, 2009 at 11:06 PM, Edho P Arief <edhoprima at gmail.com> wrote:

> On Fri, Jun 19, 2009 at 12:18 PM, Kevin
> Castiglione<kevincastiglione at gmail.com> wrote:
> > On Thu, Jun 18, 2009 at 8:55 PM, Edho P Arief <edhoprima at gmail.com>
> wrote:
> >>
> >> On Fri, Jun 19, 2009 at 7:26 AM, Kevin
> >> Castiglione<kevincastiglione at gmail.com> wrote:
> >> >             fastcgi_pass backend_flock;
> >> >
> >> >              - fastcgi_param SCRIPT_FILENAME
> /$host$fastcgi_script_name;
> >> + fastcgi_param SCRIPT_FILENAME /$host/$host$fastcgi_script_name;
> >
> > Edho
> > This also produces the same result. the mapping does not work as
> expected.
> > thank you!
> >
> >
> you may want to check which variables used by your program and adjust
> them accordingly.
>
> For example, in (at least) php these are the variables related to document
> path
>
> SCRIPT_FILENAME
> SCRIPT_NAME
> REQUEST_URI
> DOCUMENT_URI
> DOCUMENT_ROOT
>
> You may need to adjust one or more of these variables (or maybe other
> variables) to make your program works
>
i tried all of these and still no result. my web app is written in python
and uses flup fastcgi middleware.
thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090619/6cbdab01/attachment.html>


More information about the nginx mailing list