Questions tagged [scgi]

SCGI is a protocol which provides server functionality. It is implemented as a long-running process to avoid the overhead of spawning a separate process for each request.

SCGI(Simple Common Gateway Interface) is intended to replace . Unlike CGI, it responds to requests using a single instance of the server process.

References

20 questions
20
votes
2 answers

FastCGI on port vs. on socket

I was setting up Django on Cherokee today (using SCGI), and I noticed that the Django docs say that you can use either a host/port combination or a socket for communication between the webserver and Django. The only thing they have to say on the…
Xiong Chiamiov
  • 13,076
  • 9
  • 63
  • 101
19
votes
3 answers

What's the difference between scgi and wsgi?

What's the difference between these two? Which is better/faster/reliable?
daniels
  • 18,416
  • 31
  • 103
  • 173
14
votes
1 answer

WebSocket and CGI/FastCGI/SCGI protocols

I'm looking for resources about interaction between client side web socket, web server and real application backend that works behind CGI, FastCGI or SCGI protocols. It seems that this is impossible at this point as: Request length is specifically…
Artyom
  • 31,019
  • 21
  • 127
  • 215
8
votes
1 answer

Why do web frameworks serve via FastCGI/SCGI, rather than HTTP?

Major web frameworks (such as Django, Pyramid, Rails, etc) are often run as persistent servers, with a separate web server like nginx serving as a frontend. The web server connects via a protocol like FastCGI or SCGI: browser --[http]--> nginx…
John Millikin
  • 197,344
  • 39
  • 212
  • 226
4
votes
5 answers

Redmine 2.3, ruby 2.0.0, nginx 1.4.1 with passenger 4.0.2 all HTTP POSTs fail

I'm new to nginx and am attempting to run Redmine 2.3 using ruby 2.0.0, phusion passenger 4.0.2 and nginx 1.4.1. This is compiled from the passenger-install-nginx script on an ARMv5te system in Arch Linux ARM. I am getting the following in the nginx…
3
votes
2 answers

HTTP Proxy/FastCGI/SCGI not closing connection when client disconnected - bug or feature?

I'm working on Comet support for CppCMS framework via long XMLHttpRequest polls. In many cases, such request is closed by client before any response from server was given -- for example the page is closed, user moves to other page or it is just…
Artyom
  • 31,019
  • 21
  • 127
  • 215
2
votes
2 answers

FastCGI / SCGI pre-fork

I've been trying to implement a web server gateway (for fun and educational purposes) and I have some questions about the core architecture behind FastCGI/SCGI with respect to the pre-fork model. How do FastCGI/SCGI implementations handle…
André Caron
  • 44,541
  • 12
  • 67
  • 125
2
votes
1 answer

Cannot parse string with null character

I'm trying to write a parser for SCGI requests. I'm trying to parse the string described in the example but for some reason I cannot find the position of the second null character, the one that separates the content length value and the next…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
1
vote
0 answers

Is reverse proxying the most efficient way to couple nginx and nodejs?

When you have a single webserver with multiple nodejs applications, the typical thing you do is slap some reverse proxy in front of them all and write rules. Nginx is currently a favorite because it's fast, so I'll focus on that, but the question…
Vilx-
  • 104,512
  • 87
  • 279
  • 422
1
vote
1 answer

SCGI scripting engine servers? (C#, Java, PHP)

I am looking for scripting engines that provide an SCGI server: a server like Apache receives HTTP requests and sends them to the backend scripting engine, the scripting engine parses and process the SCGI request and sends the reply to…
Eric
  • 11
  • 2
1
vote
2 answers

What's the main difference between uWSGI protocol and SCGI?

I'm currently writing a server that needs to talk to a webserver. I'm not sure what should I use to bridge the gap between my server and the webserver, SCGI or the uWSGI Protocol. At some point I'd swear I read somewhere in the uwsgi documentation…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
1
vote
1 answer

Problem deploying Django-Mingus with Flup and Cherokee. Strange admin behaviour

I have a django-mingus blog running perfectly fine with the integrated development web server of django. It's installed in a virtualenv. Once deployed using the django app wizard of cherokee 0.99.42 the admin pannel is displaying a strange…
user234090
  • 53
  • 1
  • 5
1
vote
1 answer

Communicating directly with an SCGI channel

On my home server I'm trying to write a command line script that communicates with an SCGI (XML-RPC) server (rtorrent). Since it's really the only language that I'm any good at, I'd like to use PHP (php-cli that is). However, as I'm trying to find…
Walter Vos
  • 436
  • 1
  • 3
  • 13
1
vote
0 answers

FCGI / SCGI: theoretical stuff about multi-processing

I'm about to write a FastCGI / SCGI (independent implementations) server but I don't have much experience with networked and especially delayed-application programming. I got a theoretical problem when I think in detail about what I want to do. When…
The Wavelength
  • 2,836
  • 2
  • 25
  • 44
0
votes
1 answer

writing ClientRequest for scgi with node.js

I want to write an scgi version of http.request, which returns an instance of http.ClientRequest. Of course, I'd write the equivalent but for scgi. I'm wondering what I should go about extending or where I should begin. I can handle the scgi part,…
Jorge Israel Peña
  • 36,800
  • 16
  • 93
  • 123
1
2