Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In my particular case, I'm using nginx on a group of machines I inherited that are no longer running their own mail servers and all of our web traffic is either static or fastcgi. I had never used nginx before, and now I'm left with the decision of taking the effort to replace it with something I'm more familiar with or learning something new, but I don't know enough about it to know what benefits having it under my belt would hold.

share|improve this question
    
I should I mentioned my normal choice is Lighttpd, not Apache. –  ironfroggy Apr 30 '09 at 18:29

5 Answers 5

I am currently using nginx on a single web server. It hosts mainly static content, some PHP, some Python, and some Ruby. The reason I chose it was for the lightness. I find it to use significantly less memory than Apache and I have had no problems with it thus far. My page load times have even decreased slightly.

I think the main benefit is the lightweight factor. If you are looking for a simple and clean web server, nginx offers a great option.

share|improve this answer
    
your load time has increased or decreased? –  Julien Jun 10 '09 at 0:28
    
Sorry, decreased. Typo :P –  bjtitus Jun 11 '09 at 3:11

nginx usage in the Internet is increasing. It's a very lean and fast server, often used as a reverse proxy for e.g. load balancing, but it does a great job on its own. It has great community support and is actively developed by the original author.

I think it's worth to know this tool.

share|improve this answer

I can't recommend nginx enough, combined with php-fpm and xcache its excelled in performance compared to every other web server I've ever tried (Apache, IIS, Lighttpd). Extremely flexible, extremely fast, only downside is it takes a while to get setup.

share|improve this answer

We've been using nginx as a reverse proxy at work for a long time, and I've recently started using it for php and python projects at home. So +1, definitely worth knowing.

Things feel blazing fast, even on low-end hardware.

share|improve this answer

I use it due to it's light weight, but I keep Apache around to handle any pages that absolutely require it (such as those dependant on dynamically updated .htaccess files).

I found a nice way to share a PHP process between the two of them: see my answer at stackoverflow here: http://stackoverflow.com/questions/574690/sharing-php-cgi-between-apache-and-nginx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.