Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ругается на конфиг с nginx 	http recaptcha module
 
- To: nginx-ru@xxxxxxxxx
 
- Subject: Re: ругается на конфиг с nginx 	http recaptcha module
 
- From: "necro" <nginx-forum@xxxxxxxx>
 
- Date: Fri, 11 Mar 2011 01:51:24 -0500
 
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;	d=mickey.jlkhosting.com; s=x; 	h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To;	bh=zNtp6Wc/sxA615tGSaGRsFgCHm9ZDBxca46wysF+lrM=; 	b=JGNKHhw+6M+/h4OpqwBnwoAIzS13t5KC5bM6LNBj8rD2aXPPl45c+AYgSlEPKWDLFLROuDwIhzpBtspOER2uWauXsnxLIs6a+SRmrJK/KXgTUvX670MY3QLYU4MyeDxw;
 
- In-reply-to: <A750FCD6-5A37-4A48-B3A4-237000771E98@xxxxxxxxx>
 
- References: <A750FCD6-5A37-4A48-B3A4-237000771E98@xxxxxxxxx>
 
 
 
Igor Sysoev Wrote:
-------------------------------------------------------
> 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
> >> : 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_e
> xpires_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#m
> sg-181879
> 
> 
> 
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
Алексей оказался прав, в вышестоящей
секции location в директиве proxy_pass
"http://www.google.com"; отсутствовали
закрывающие двойные кавычки.
Всем спамибо!
Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,182069,182204#msg-182204
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
 
 |