Sunday, January 27, 2013

Install Nginx 1.2.6 on CentOS 6.3

I read all the following materials before installing Nginx on my CentOS box.
  1. Wiki Nginx
  2. Nginx website 
Install Nginx 1.2.6 on CentOS box:
  1. Add the official repro

  2. Install Nginx 1.2.6
  3.  
  4.   StartNginx and make it start when reboot

  5. Enable the firewall and let HTTP service go through


  6.  Test your nginx install


A couple of interesting terminologies I learned from readings.
  1. Benefits of reverse proxy
    • Encryption / SSL acceleration 
    • Load balancing
    • Serve/Cache static web conents
    • Compression
    • Spoon feeding
    • Security
  2. CGI vs FastCGI vs SCGI vs uWSGI
    • CGI: one new process per request
    • FastCGI: use persistent processes to handle a series of requests
    • SCGI: similar to FastCGI but designed to be easily implemented
    • uWSGI: a simple and unique interface between web server and web applications/frameworks
  3. FLV and MP4 video streaming