nginx http-core enhancement: named location in subrequests + directive use_location
Sergey Brester
serg.brester at sebres.de
Wed Apr 29 07:18:11 UTC 2015
Hi,
enclosed you will find an attached changeset, that:
- allows to fast use of named location in sub requests, such as
auth_request, etc. Currently no named location was possible in any sub
requests, real (or internal) locations only.
# now you can use named location in sub requests:
# auth_request /auth_loc/;
auth_request @auth_loc;
- in addition, a second mini-commit (37d7786e7015) with new directive
"use_location" as alias or replacement for "try_files" with no file
argument and without checking the existence of file(s):
# try_files "" @loc
use_location @loc
It was allready more times discussed (goto location, etc.).
PS. If someone needs a git version of it:
https://github.com/sebres/nginx/commits/hg-sb-mod [1]
Regards,
sebres.
Links:
------
[1] https://github.com/sebres/nginx/commits/hg-sb-mod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150429/3fd525b4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-core-enhancement.patch
Type: text/x-diff
Size: 6327 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150429/3fd525b4/attachment.bin>
More information about the nginx-devel
mailing list