Welcome! Log In Create A New Profile

Advanced

Re: Не добивается try_files

Maxim Dounin
January 26, 2010 06:52AM
Hello!

On Tue, Jan 26, 2010 at 02:31:36PM +0300, J Channel wrote:

> Почему-то не работает такая конструкция:
>
> location ~ ^/book/(vc/xml/spo_xml|xml\.jsp) {
> if ( $arg_spo ~ "^[\d]+([\d]{2})([\d])$" ) {
> set $ff $1;
> set $ss $2;
> }
> try_files /opt/xmlgate/cache/$ss/$ff/$arg_spo @tom;
> }

Я уже объяснил в irc, так что just for the record:

http://wiki.nginx.org/IfIsEvil
третий по счёту пример

Решение - выносить if на уровень server или делать в нём переход в
другой location через return/rewrite ... last (и уже в другом
location'е делать try_files).

Maxim Dounin

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

Не добивается try_files

J Channel January 26, 2010 06:32AM

Re: Не добивается try_files

Maxim Dounin January 26, 2010 06:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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