Welcome! Log In Create A New Profile

Advanced

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

kav
March 10, 2011 02:02PM
весь конфиг, в студию короче
только аттачментом
не всем же эта муть интересна

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


_______________________________________________
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:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready