Welcome! Log In Create A New Profile

Advanced

Re: if else

Roman Vasilyev
April 16, 2012 03:10PM
On 04/16/2012 12:02 PM, ink08 wrote:
> кэп, переводить я и сам умею, но тут http://wiki.opennet.ru/Nginx
> использовали else.
>

там где используется "else" первой строкой стоит красноречивый
#!/usr/bin/perl

> PS: nginx version: nginx/1.0.15
>
> 16 апреля 2012 г. 22:48 пользователь Denis F. Latypoff
> <latypoff@yandex.ru> написал:
>
>> 17.04.2012, 01:44, "ink08"<ink08@ink-online.ru>:
>>
>>> if ($host = 'domain') {
>>> return 404;
>>> }
>>> else {
>>> return 403;
>>> }
>>>
>>> вот на такую конструкцию nginx -t говорит 'nginx: [emerg] unknown
>>> directive "else"'
>>> что не так?
>>>
>> Неизвестная директива "else"
>>
>> --
>> br, Denis F. Latypoff.
>>
>> _______________________________________________
>> nginx-ru mailing list
>> nginx-ru@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>>
>
>
>

_______________________________________________
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: 157
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