$request_uri without args
agentzh at gmail.com
Wed Sep 14 14:14:12 UTC 2011
On Wed, Sep 14, 2011 at 9:50 PM, Richard Kearsley
<Richard.Kearsley at m247.com> wrote:
> Is it possible to access the $request_uri without the args at the end?
> I know I can use $uri – but this returns the url-decoded uri.
> I need the url-encoded (I.e. unchanged from original request) but with the
> args stripped
Why not strip $request_uri yourself? You can use "if" + pcre regex or
more preferably, set_by_lua/rewrite_by_lua provided by ngx_lua, to
process what in $request_uri :)
More information about the nginx