svd01 / Project

0 stars 0 forks source link

investigate nginx + ruby app (based no fcgi) #11

Open rkhozinov opened 7 years ago

rkhozinov commented 7 years ago

Generalized algorithm works through CGI can be represented as follows:

1. The client requests a CGI-application on its URI. 2. The web server receives the request, set environment variables, through their application data and service information is transmitted. 3. The Web server forwards the request (stdin) to the input of the called program. CGI-application performs all the necessary operations and produces the results in HTML. 4. Formed back hypertext web server via (stdout). 5. Error messages - stderr. 6. The web server transmits the results to the client request.