nginx rewrite help
Edho P Arief
edhoprima at gmail.com
Fri Jun 19 10:06:55 MSD 2009
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
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list