Difference between revisions of "Nginx"

From ArchWiki
Jump to: navigation, search
(New page: {{stub}} ==Summary== Nginx (pronounced "engine X") written by Igor Sysoev (Russia) in 2005, is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3...)
 
Line 11: Line 11:
 
==Starting service ==
 
==Starting service ==
 
Run
 
Run
   /etc/rc.d/nginx start
+
   # /etc/rc.d/nginx start
 
to start working. The default configuration is enabling an example site in /var/www/localhost/htdocs.  
 
to start working. The default configuration is enabling an example site in /var/www/localhost/htdocs.  
  
Line 19: Line 19:
 
You can modify the configurations by editing the files in /etc/nginx. (/etc/nginx/nginx.conf being the main config file) .  
 
You can modify the configurations by editing the files in /etc/nginx. (/etc/nginx/nginx.conf being the main config file) .  
  
More details can be referred from [http://wiki.codemongers.com/Main Nginx Wiki].
+
More details can be referred from [http://wiki.codemongers.com/NginxConfiguration Nginx Configuration Examples].
  
 
==References ==
 
==References ==
 
*[http://nginx.net/ Nginx Official site]
 
*[http://nginx.net/ Nginx Official site]
 
*[http://wiki.codemongers.com/Main Nginx Wiki]
 
*[http://wiki.codemongers.com/Main Nginx Wiki]

Revision as of 11:49, 3 January 2009


Summary

Nginx (pronounced "engine X") written by Igor Sysoev (Russia) in 2005, is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. According to the Netcraft December 2008 Web Server Survey, nginx now hosts nearly 1.80% of all domains worldwide, while lighttpd hosts about 1.63%. Nginx is now well known for its stability, rich feature set, simple configuration, and low resource consumption.

Installation

The nginx package is now in the Community Repository, the latest stable version is nginx-0.6.34:

 # pacman -S nginx

or you can compile and install the latest development version with ABS.

Starting service

Run

 # /etc/rc.d/nginx start

to start working. The default configuration is enabling an example site in /var/www/localhost/htdocs.

To enable service by default at startup just add "nginx" to the DAEMONS in the /etc/rc.conf.

Configuring

You can modify the configurations by editing the files in /etc/nginx. (/etc/nginx/nginx.conf being the main config file) .

More details can be referred from Nginx Configuration Examples.

References