Re: [Cppcms-users] async connections and response headers
Brought to you by:
artyom-beilis
|
From: Frank E. <fra...@an...> - 2010-07-14 10:13:44
|
ok - then i'll switch over to fastcgi. thanks for investigating this.
the SCRIPT_NAME and PATH_INFO issue gave me also a lot of headache, but
i emulate them by using rewrite rules within nginx:
location ~ ^/.* {
set $script $uri;
set $path_info "";
if ($uri ~ "^/([^/]+)(/?.*)$") {
set $script $1;
set $path_info $2;
}
scgi_pass 127.0.0.1:8080;
include scgi_params;
scgi_param SCRIPT_NAME $script;
scgi_param PATH_INFO $path_info;
}
if you don't mind i'd like to ask one further question. the target of
the project i'm working on is to work with many, many longpoll
connections so i'm wondering why i need to nginx in front of cppcms.
wouldn't it be more efficient to have cppcms handle the http
communication itself? what are the advantages using a webserver in front
of cppcms (besides that it could deliver static content, etc..)
thanks,
frank
Am 14.07.2010 12:07, schrieb Artyom:
> Hello,
>
> Looks like Nginx's SCGI backend does not confirm to CGI/SCGI standard
> See: http://wiki.nginx.org/NginxNgxSCGIModule bugs section.
>
> So I would suggest using FastCGI with nginx or use other web server like
> lighttpd or apache that has confirming implementations.
>
> Regards,
> Artyom
>
>
> P.S.: Also I see that according to documentation of Nginx's SCGI:
> "In the current version SCRIPT_NAME and PATH_INFO are not defined.
> they are very important for CppCMS applications correct dispatching.
>
>
>
>>
>> thanks for pointing this out. it now works (yippie) but if i omit
>> setting the status explicit to 200 i still get no response headers. from
>> your mail i think it should default to 200 - shouldn't it? or is this a
>> flaw in the nginx's scgi implementation..
>>
>> thanks again,
>>
>> frank.
>>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
--
Dipl.-Ing. (FH) Frank Enderle
anamica UG (haftungsbeschränkt)
Beinsteinerstr. 6
71334 Waiblingen
Telefon: +49 151 14981091
Telefax: +49 7151 1335770
E-Mail: fra...@an...
Internet: www.anamica.de
Handelsregister: AG Stuttgart HRB 732357
Geschäftsführer: Yvonne Holzwarth, Frank Enderle
|