farshadmohajeri / extpascal

Automatically exported from code.google.com/p/extpascal
49 stars 28 forks source link

ExtPascal with Nginx #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use ExtPascal on SVN, ExtJS 3.1.1 with NGINX 0.8.34 ,when I access my
/cgi-bin/extpascalsamples.cgi, I met such an error:

Ext.Msg.show({title:"Error",msg:"Multiplexing is not 
allowed.",icon:Ext.Msg.ERROR,buttons:Ext.Msg.OK});

How can I solve this problem? 

Original issue reported on code.google.com by suzukaze...@gmail.com on 7 Apr 2010 at 8:13

GoogleCodeExporter commented 9 years ago
Nginx is a webserver not approved or tested for ExtPascal.
In this case you'll have to figure out what's happening and to correct yourself.
If you can, please post your solution here.
Unfortunately I do not have time to research this problem and leave to you the 
task
of porting ExtPascal to Nginx. I hope you understand...
As a starting point see: http://www.fastcgi.com/drupal/node/6
Maybe someone can help you if you post any request in the forum.

Original comment by wanderla...@gmail.com on 7 Apr 2010 at 12:37

GoogleCodeExporter commented 9 years ago

Original comment by wanderla...@gmail.com on 19 Apr 2010 at 1:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I encountered same error and solved it after looking nginx source.

in procedure TFCGIThread.Execute add this code
   {$IFDEF NGINX}
   inc(I,FCGIHeader.PadLen);
   {$ENDIF}
after this line
   inc(I, FCGIHeader.Len);

and dont forget defining NGINX

i didnt check it with Apache, if Apache does not use padding and sends zero for 
PadLen just changing
   inc(I, FCGIHeader.Len);
to
   inc(I, FCGIHeader.Len+FCGIHeader.PadLen);
might work with both servers

Original comment by gokhaner...@gmail.com on 18 Jan 2011 at 7:28

GoogleCodeExporter commented 9 years ago
I realized this is already fixed in trunk

Original comment by gokhaner...@gmail.com on 20 Jan 2011 at 4:04