Welcome! Log In Create A New Profile

Advanced

Re: Замена content-type image/webp в location

damir bikmuhametov
November 07, 2019 10:26PM
On Thu, Nov 07, 2019 at 08:21:31PM -0500, commeta wrote:
> А как здесь location /webp прикрутить? подскажите.

в любое место внутри вашего location / { ... }

только нужно использовать location ^~ /webp/ { ... }, потому что
регулярки выигрывают и вы получите цикл.

а еще мне кажется, что вместо толпы if надо использовать map и try_files

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

Замена content-type image/webp в location

commeta November 06, 2019 04:44PM

Re: Замена content-type image/webp в location

Илья Шипицин November 06, 2019 04:54PM

Re: Замена content-type image/webp в location

commeta November 06, 2019 06:19PM

Re: Замена content-type image/webp в location

NickLavlinsky November 07, 2019 03:29AM

Re: Замена content-type image/webp в location

commeta November 07, 2019 07:53AM

Re: Замена content-type image/webp в location

damir bikmuhametov November 07, 2019 08:30AM

Re: Замена content-type image/webp в location

Илья Шипицин November 07, 2019 08:30AM

Re: Замена content-type image/webp в location

commeta November 07, 2019 08:21PM

Re: Замена content-type image/webp в location

commeta November 07, 2019 10:30PM

Re: Замена content-type image/webp в location

damir bikmuhametov November 07, 2019 10:26PM

Re: Замена content-type image/webp в location

vitcool November 07, 2019 08:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready