HTTP 请求从 Web 服务器分派到 CGI/FastCGI 进程 [英] HTTP request dispatch from Web Server to a CGI/FastCGI process

查看:20
本文介绍了HTTP 请求从 Web 服务器分派到 CGI/FastCGI 进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了进一步了解在 Web 应用程序中如何处理 HTTP 请求,像 Apache 这样的 Web 服务器如何将请求分派到其虚拟主机之一?不考虑框架(Rails/PHP/Java)而执行的初始程序是什么?如果有人可以列出以 Rails 为例的步骤(我知道 Rails),我将不胜感激.提前致谢!

To gain more understanding of how HTTP requests are handled in case of web apps, how does a web server like Apache, dispatch a request to one of its Virtual Hosts? What are the initial programs executed irrespective of the framework (Rails/PHP/Java)? I would appreciate if someone can list the steps taking example of Rails (as I know Rails). Thanks in advance!

推荐答案

啊,几篇关于 Rails 的好文章解释了我想知道的大部分内容:

Ah, couple of good rails specific articles that explain most of what I wanted wanted to know:

http://railsguts.com/initialization.html

http://www.codeweblog.com/rails-startup-process/

这篇关于HTTP 请求从 Web 服务器分派到 CGI/FastCGI 进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆