This document summarizes a talk comparing PHP and Rails web development frameworks. It discusses the evolution of web servers from Apache to more scalable options like Nginx. Nginx acts as a reverse proxy, passing requests to application servers like FastCGI that execute code and return responses. This represents a shift from simply serving static files to building full-featured web applications using the MVC pattern. Node.js is presented as the next step, allowing JavaScript to be used for server-side development in an event-driven, non-blocking way.
93. FastCGI version of the same config
server {
listen 80;
server_name mattgauger.com;
index index.php;
root /var/www;
location ~* .php$ {
if (!-f $request_filename) {
return 404;
}
fastcgi_pass 127.0.0.1:9000;
}
}
105. HTTP/1.1 200 OK
Date: Mon, 23 May 2005 22:38:34 GMT
Server: Etc.
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
Etag: "3f80f-1b6-3e1cb03b"
Accept-Ranges: bytes
Content-Length: 438
Connection: close
Content-Type: text/html; charset=UTF-8
[blank line here!]
Response body.Neque porro quisquam est qui dolorem ipsum
quia dolor sit amet, consectetur, adipisci velit..."
106. Which is sent back as a
response to a browser,
or some JavaScript, or
whatever