Welcome! Log In Create A New Profile

Advanced

Re: Логика обработки опций в location

Maxim Dounin
March 18, 2015 11:38AM
Hello!

On Wed, Mar 18, 2015 at 06:27:30PM +0300, Anton Kiryushkin wrote:

[...]

> Собственно, хочется понять, почему так происходит

http://wiki.nginx.org/IfIsEvil

> и как сделать то, что мне хочется.

Сделать отдельные location'ы с полноценной конфигурацией, а не
пытаться программировать в конфиге сложную логику с переходами.
Как-то так:

location /a.php {
allow ...
deny ...
proxy_pass http://...
}

location /b.php {
allow ...
deny ...
proxy_pass http://...
}

Не надо придумывать себе трудности, чтобы потом их героически
преодолевать.

--
Maxim Dounin
http://nginx.org/

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

Логика обработки опций в location

Anton Kiryushkin March 18, 2015 11:28AM

Re: Логика обработки опций в location

Maxim Dounin March 18, 2015 11:38AM

Re: Логика обработки опций в location

Gena Makhomed March 18, 2015 11:46AM

Re: Логика обработки опций в location

Anton Kiryushkin March 18, 2015 12:22PM

Re: Логика обработки опций в location

Gena Makhomed March 18, 2015 12:28PM

Re: Логика обработки опций в location

Anton Kiryushkin March 18, 2015 03:48PM

Re: Логика обработки опций в location

Maxim Dounin March 18, 2015 08:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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