Nginx Installation on Centos 5 32 bit


nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites including Yandex, Mail.Ru, VKontakte, and Rambler. According to Netcraft nginx served or proxied 10.09% busiest sites in April 2012. Here are some of the success stories: FastMail.FM,

  1. Basic HTTP server features
    • Serving static and index files, and autoindexing; open file descriptor cache;
    • Accelerated reverse proxying with caching; simple load balancing and fault tolerance;
    • Accelerated support with caching of FastCGI, uwsgi, SCGI, and memcached servers; simple load balancing and fault tolerance;
    • Modular architecture. Filters include gzipping, byte ranges, chunked responses, XSLT, SSI, and image transformation filter. Multiple SSI inclusions within a single page can be processed in parallel if they are handled by proxied or FastCGI servers;
    • SSL and TLS SNI support.
  2. Other HTTP server features
    • Name-based and IP-based virtual servers;
    • Keep-alive and pipelined connections support;
    • Flexible configuration;
    • Reconfiguration and upgrade of an executable without interruption of the client servicing;
    • Access log formats, buffered log writing, and fast log rotation;
    • 3xx-5xx error codes redirection;
    • The rewrite module: URI changing using regular expressions;
    • Executing different functions depending on the client address;
    • Access control based on client IP address and HTTP Basic authentication;
    • The PUT, DELETE, MKCOL, COPY, and MOVE methods;
    • FLV and MP4 streaming;
    • Response rate limiting;
    • Limiting the number of simultaneous connections or requests coming from one address;
      Embedded Perl.
  3. Mail proxy server features
    • User redirection to IMAP/POP3 backend using an external HTTP authentication server;
    • User authentication using an external HTTP authentication server and connection redirection to an internal SMTP backend;
    • Authentication methods:
    • SSL support;
    • STARTTLS and STLS support.

nginx installation

To enable automatic updates of Linux packages set up the yum repository for the RHEL/CentOS distributions, Download nginx

[root@ftp ~]# wget
[root@ftp ~]# rpm -ivh nginx-release-centos-5-0.el5.ngx.noarch.rpm


Enable EPEL repository

[root@nginx source]# yum search nginx

[root@nginx source]# yum install nginx

[root@ftp ~]# /etc/init.d/nginx start
Starting nginx: [ OK ]

for test, go to http://your-web-server-ip with your web browser.
nginx first time

nginx configuration file

  • Default config file: /etc/nginx/nginx.conf
  • Default SSL config file: /etc/nginx/conf.d/ssl.conf
  • Default virtual hosting config file: /etc/nginx/conf.d/virtual.conf
  • Default documentroot: /usr/share/nginx/html

Source : nginx

0 thoughts on “Nginx Installation on Centos 5 32 bit

  1. Pingback: Myee Documentation » Net2ftp installation with Nginx and MySQL on CentOS 5

  2. Pingback: Myee Documentation » Configure PHP as FastCGI Webserver on Nginx

Leave a Reply