Welcome! Log In Create A New Profile

Advanced

Re: REST URLs and NGINX (config help needed)

Ben
June 16, 2016 09:36AM
On 16/06/2016 14:14, Edho Arief wrote:
> Hi
>
> On Thu, Jun 16, 2016, at 22:11, Edho Arief wrote:
>>>
>>> for /demo/ it prints "/demo/"
>>> and
>>> for /demo/hello/x it prints "/demo/hello"
>>>
>>> Which looks like their "auto base-path" is setting moving goalposts !!
>>>
>>
>> That doesn't make sense if you actually use my configuration since
>> SCRIPT_NAME is static.
>>
>
> Looking again, you probably need to include fastcgi_params first.
>
> Here's the config I'm using:
>
> 12 location @pdemo {
> 13 include fastcgi_params;
> 14 fastcgi_param SCRIPT_FILENAME /path/to/demo.php;
> 15 fastcgi_param SCRIPT_NAME /demo/;
> 16 fastcgi_pass 127.0.0.1:9000;
> 17 }
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

Doing some testing but that seems to have done the trick in the few
things I've tried so far.

Thanks !

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

REST URLs and NGINX (config help needed)

Ben June 14, 2016 01:30PM

Re: REST URLs and NGINX (config help needed)

Edho Arief June 14, 2016 02:10PM

Re: REST URLs and NGINX (config help needed)

Ben June 16, 2016 09:08AM

Re: REST URLs and NGINX (config help needed)

Edho Arief June 16, 2016 09:12AM

Re: REST URLs and NGINX (config help needed)

Edho Arief June 16, 2016 09:16AM

Re: REST URLs and NGINX (config help needed)

Ben June 16, 2016 09:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 215
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready