Getting started with Nginx
Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server.
Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.
Lets see how we can test Nginx on a Ubuntu system. Nginx is already packaged for Ubuntu. You can install with following command.
sudo apt-get install nginx
Configuration of Nginx is stored in /etc/nginx folder.
drwxr-xr-x 5 root root 4096 2009-08-05 13:38 . drwxr-xr-x 53 root root 4096 2009-08-05 13:38 .. drwxr-xr-x 2 root root 4096 2008-10-05 13:36 conf.d -rw-r--r-- 1 root root 909 2008-10-05 13:35 fastcgi_params -rw-r--r-- 1 root root 2837 2008-10-05 13:35 koi-utf -rw-r--r-- 1 root root 2223 2008-10-05 13:35 koi-win -rw-r--r-- 1 root root 2944 2008-10-05 13:35 mime.types -rw-r--r-- 1 root root 510 2008-10-05 13:35 nginx.conf drwxr-xr-x 2 root root 4096 2009-08-05 13:38 sites-available drwxr-xr-x 2 root root 4096 2009-08-05 13:38 sites-enabled -rw-r--r-- 1 root root 3610 2008-10-05 13:35 win-utf
As you can see it has similar structure you would see for an apache installation.
Our configuration scripts will be located in the sites-available folder and we will enabling a site just by creating a symbolic link to its configuration in the sites-enabled folder.
If you visit the http://127.0.0.1 you will see the welcome page from default site.
Original documentation of Nginx is in Russian. For non Russian speakers it is advised to use Google and Altavista translation. If you are beginner it is a little bit trick to find your way.
During my search on the Internet I found following nice article Top 10 Nginx Tutorial. I think it speed you up.
No related posts.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=11e474c0-728d-4d44-9d52-7b5375ed5d16)
