Peter Mescalchin
May 28, 2014 12:56AM
Thanks Igor,

I had explored that method already, sadly (as you know) "alias" is given
as an absolute path meaning I can't use this block of config within
multiple virtual hosts which I include; - would have to re-write this same
block of config for each Virtual host modifying the alias path prefix.

And since alias man page explicitly states that $document_root can't be
used it's not possible to complete this config in a reusable way. (e.g.
alias $document_root/path/to/$1/$2; would be perfect).

Alas, I think what I have (storing the captures in temp vars) is the only
real solution thus far.

Unless the penny hasn't dropped in my head? :)


Pete


> 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: 295
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