Welcome! Log In Create A New Profile

Advanced

Re: if else

Oleksandr V. Typlyns'kyi
April 16, 2012 03:16PM
Today Apr 16, 2012 at 23:04 ink08 wrote:

> спасибо, пример был не точным, имел ввиду разные try_files
> использовать, но оказалось нельзя. получилось так:
> location / {
> if ($host = 'dynamic.domain.com') {
> return 418;
> }
> return 419;
> try_files /undefined @backend;
> error_page 418 = @backend;
> error_page 419 = @backend-cache;
> recursive_error_pages on;

Не нужно домены if-ом проверять.
Пропишите для другого домена отдельный виртуальный сервер:
http://nginx.org/en/docs/http/converting_rewrite_rules.html

--
WNGS-RIPE

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

if else

ink08 April 16, 2012 02:46PM

Re: if else

Denis F. Latypoff April 16, 2012 02:50PM

Re: if else

Roman Vasilyev April 16, 2012 03:02PM

Re: if else

ink08 April 16, 2012 03:06PM

Re: if else

Oleksandr V. Typlyns'kyi April 16, 2012 03:16PM

Re: if else

ink08 April 16, 2012 03:20PM

Re: if else

Andrey Repin April 17, 2012 07:52PM

Re: if else

ink08 April 16, 2012 03:04PM

Re: if else

Oleksandr V. Typlyns'kyi April 16, 2012 03:10PM

Re: if else

ink08 April 16, 2012 03:12PM

Re: if else

Roman Vasilyev April 16, 2012 03:10PM

Re: if else

Anton Kiryushkin April 16, 2012 03:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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