Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ругается на конфиг с nginx http recaptcha module
- To: nginx-ru@xxxxxxxxx
- Subject: ругается на конфиг с nginx http recaptcha module
- From: "necro" <nginx-forum@xxxxxxxx>
- Date: Thu, 10 Mar 2011 01:54:16 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=Cnby9gaf54fG4xlYltPVB5ur7Ken0RCQq6xRON06rKU=; b=PvUaXwC0iWJlaYNeWIHL7X5aqyLA/JqIkxdCtTcCSmBBSfabDblX5nY/MpFsYkH+Ew45Z1yKrM5HrgKmiMrKO856IJQqER4pQptPEE0gFTeiXwYpt2jUComfwxatWTRD;
Приветствую!
Собрал 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@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|