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