May 28, 2014 12:46AM
On 28 May 2014, at 03:52, Peter Mescalchin <peter.mescalchin@gmail.com> wrote:

> Hello Nginx developers,
>
> speaking to Maxim Konovalov over Twitter, suggested this would be the better place to get an answer to my suggestion.
>
> Basically what I would like to see is the ability to use a rewrite directive without the need to capture the current URI, which in turn overwrites $1,$2,$x captures made within a location directive.
>
> Best to explain via an example:
>
> https://gist.github.com/magnetikonline/11364574
>
>
> As you can see, this works (and works well) but the need to use "set" to save copies of $1/$2 seems a little wasteful.
>
> Digging through the documentation I can't seem to find a way of using rewrite without blowing away/not capturing the current URI.

location ~ "^/[a-f0-9]{16}/(css|js)/(.+)" {
expires 30d;
alias /path/to/$1/$2;
}



--
Igor Sysoev
http://nginx.com

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

Request for a "no capture" rewrite directive enhancement

Peter Mescalchin May 27, 2014 07:54PM

Re: Request for a "no capture" rewrite directive enhancement

B.R. May 28, 2014 12:04AM

Re: Request for a "no capture" rewrite directive enhancement

Peter Mescalchin May 28, 2014 12:34AM

Re: Request for a "no capture" rewrite directive enhancement

Igor Sysoev May 28, 2014 12:46AM

Re: Request for a "no capture" rewrite directive enhancement

Peter Mescalchin May 28, 2014 12:56AM

Re: Request for a "no capture" rewrite directive enhancement

Igor Sysoev May 28, 2014 06:04AM

Re: Request for a "no capture" rewrite directive enhancement

B.R. May 28, 2014 11:42AM

Re: Request for a "no capture" rewrite directive enhancement

Igor Sysoev May 28, 2014 12:12PM

Re: Request for a "no capture" rewrite directive enhancement

Peter Mescalchin May 28, 2014 10:10PM

Re: Request for a "no capture" rewrite directive enhancement

B.R. May 28, 2014 10:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready