Welcome! Log In Create A New Profile

Advanced

Re: ругается на конфиг с nginx http recaptcha module

March 10, 2011 02:34PM
On Mar 10, 2011, at 21:59 , Alexey V. Karagodov wrote:

> скорей всего где ДО строки 170 пропущен знак ";"
> проверять надо от строки 170 и вверх по конфигу

Скорее всего. Только не ';', а незакрытая кавычка '"'.


--
Игорь Сысоев
http://sysoev.ru

> On 10.03.2011, at 9:54, necro wrote:
>
>> Приветствую!
>> Собрал nginx c модулем nginx_http_recaptcha_module,
>> сконфигурировал в соответствии с
>> руководством на
>> https://github.com/yaoweibin/nginx_http_recaptcha_module, при
>> старте nginx выдает ошибку:
>>
>> # nginx -t
>> [emerg]: unexpected "C" in /etc/nginx.conf:170
>> configuration file /etc/nginx.conf test failed
>>
>> Кусок конфига:
>> location = /set_secure_cookie {
>> internal;
>> secure_cookie_expires 1h;
>> secure_cookie_md5
>> private_key$binary_remote_addr$secure_cookie_set_expires_base64;
>> add_header Set-Cookie
>> "CAPTCHA_SESSION=$secure_cookie_set_md5;
>> expires=$secure_cookie_set_expires; path=/";
>> add_header Set-Cookie
>> "CAPTCHA_EXPIRES=$secure_cookie_set_expires_base64;
>> expires=$secure_cookie_set_expires; path=/";
>> rewrite ^.*$ http://example.com redirect;
>> return 302;
>> }
>>
>> Строка 170:
>> add_header Set-Cookie "CAPTCHA_SESSION=$secure_cookie_set_md5;
>> expires=$secure_cookie_set_expires; path=/";
>>
>> В чём может быть проблема?
>>
>> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,181879,181879#msg-181879



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

Re: ругается на конфиг с nginx http recaptcha module

kav March 10, 2011 02:00PM

Re: ругается на конфиг с nginx http recaptcha module

Igor Sysoev March 10, 2011 02:34PM

Re: ругается на конфиг с nginx http recaptcha module

necro March 11, 2011 01:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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