Welcome! Log In Create A New Profile

Advanced

Re: Setting expires header to multiple locations

howard chen
December 14, 2012 09:40AM
Hi

On Fri, Dec 14, 2012 at 7:59 PM, Antonio P.P. Almeida <appa@perusio.net>wrote:

>
> Going against Igor, Maxim, Valentin and Ruslan in order to be more DRY you
> could use a regex based location (which has its own quirks):
>
> location ~* ^/(?:a|b|c)/.*\.(?:css|gif|js|jpe?g|png)$ {
> expires 1y;
> }
>


Thanks.

My example just in a simplified form and there are more config inside each
a, b, c...So I must need separate blocks for them..
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Setting expires header to multiple locations

howard chen December 14, 2012 06:32AM

Re: Setting expires header to multiple locations

Edho Arief December 14, 2012 06:40AM

Re: Setting expires header to multiple locations

Antonio P.P. Almeida December 14, 2012 07:00AM

Re: Setting expires header to multiple locations

Igor Sysoev December 14, 2012 07:38AM

Re: Setting expires header to multiple locations

howard chen December 14, 2012 09:44AM

Re: Setting expires header to multiple locations

howard chen December 14, 2012 09:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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