Welcome! Log In Create A New Profile

Advanced

ругается на конфиг с nginx_http_recaptcha_module

March 10, 2011 01:54AM
Приветствую!
Собрал 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=/";

В чём может быть проблема?
Subject Author Posted

ругается на конфиг с nginx_http_recaptcha_module

necro March 10, 2011 01:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready