Welcome! Log In Create A New Profile

Advanced

$request_uri for subrequest

Sebastian Krebs
August 10, 2014 07:14AM
Hi,

I have problems setting up SSI with NGinx and PHP5-FPM. The problem I have
is (indrectly) related to this rule

fastcgi_param REQUEST_URI $request_uri;

During the SSI-subrequest the variable $request_uri still points to the URI
used for the initial request. Asking me, this behavior is questionable
anyway. However, now I have issues finding the _real_ request uri for the
subrequest, because when I use $uri instead, the request itself works, but
this also uses the already rewritten.

I've started with the common pattern for a Symfony2 project [1]. When I set

fastcgi_param REQUEST_URI $uri$is_args$args

Nginx passes the full path name /app.php/foo/bar for _every_ request, even
if it's not wanted.


Is there's a reliable way to determine the original subrequest uri? Is it
possible, that the behaviour of $request_uri for SSI can be treated as bug?

Thanks for your attention,
Regards,
Sebastian


[1]
http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html#nginx

--
github.com/KingCrunch
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

$request_uri for subrequest

Sebastian Krebs August 10, 2014 07:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
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