April 16, 2012 02:46PM
if ($host = 'domain') {
return 404;
}
else {
return 403;
}

вот на такую конструкцию nginx -t говорит 'nginx: [emerg] unknown
directive "else"'
что не так?

--
С уважением,
Боваев Бова
_______________________________________________
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: 182
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