Nginx

This group is dedicated to share experiences on using Nginx as a webserver for Drupal sites. The goal is to provide community powered support for anyone looking for Nginx related advise, configuration examples and tuning. This group was born from the long thread about Nginx and Boost integration.

Nginx, Drupal and Xsend Support

I've been looking at a project where I'm going to use "private files" to make sure that only certain people can download certain files. I'd heard that this method was slower, since the web server can't serve the file directly. Instead it has to go through php.

1 comment · Read more
mrfelton's picture

NginX VirtualDocumentRoot configuration

There is an excellent article on the Drubuntu group about setting up Apache for use in a local development environment. The best thing about it is the clever use of Apache's VirtualDocumentRoot parameter which allows you to set up an infinite number of sites, using just one Apache Virtual host, greatly reducing the time involved with setting up yet another local development site as part of you local multisite development environment. I can simply create a new directory, a symlink and a local hosts entry and I'm up and running with a new site.

eg.

7 comments · Read more

Nginx Benchmarking

mikeytown2 and I hijacked my nginx built-in caching thread for some benchmarking discussions. Mostly Boost vs Varnish vs. Nginx caching. It needs its own thread.

My quick and dirty ab testing on my home "dedicated" server is at http://groups.drupal.org/node/26485#comment-101296 with a couple more using keepalives is at http://groups.drupal.org/node/26485#comment-101518.

7 comments · Read more

Drupal Admin / Developer | Smartphone Experts

Employment type: 
Contract
Telecommute: 
Allowed

Smartphone Experts own and operate a number of world class Smartphone blogs and communities (such as precentral.net and crackberry.com). We’ve grown steadily over the last few years and have reached the point where dedicated coverage is needed for our communities.

Read more
mrfelton's picture

Nginx+fcgi or Nginx+Apache/mod_php

Most of the time that I read about people using Nginx with Drupal, they are talking about using it to serve static files, whist passing the php stuff off to an Apache/mod_php backend. Personally, I use Nginx as the front end with fastcgi handling the PHP stuff. What is generally considered to be the 'better' approach? Is one more capable than the other at serving php?

30 comments

Has anyone tried nginx caching with Drupal?

There's been some great work on the Boost module lately with a lot of functionality added, especially the pre-caching crawler. And combined with nginx's speed advantage over apache serving static files, it's a great combination.

However, nginx does have built in caching. I've never used it, but I've seen some folks discussing how to do it on the mailing list. Has anyone used it for Drupal?

30 comments · Read more
omega8cc's picture

Aegir and Nginx Tips and Tricks

While there are many Aegir related tips and documentation available, including scripts for complete Aegir system install on LAMP stack, we often have clients using Aegir the first time on their new VPS, but with enough experience to manage and transfer Drupal sites, and they often tend to overlook some required steps, they still make simple mistakes, or feel lost in a too detailed how-to, so I think it can be useful to post also some simple check-lists to make the work easier for others and to help enjoy Aegir power and

2 comments · Read more
omega8cc's picture

Does Aegir Hosting System work with Nginx?

The shortest answer is: YES.

But, you need a few important ingredients to enjoy your Aegir Hosting System with Nginx as a webserver:

* Latest 0.8.x Nginx installed - try_files required - introduced in 0.7.27 http://nginx.net/CHANGES
* Nginx catch-all configuration with Boost integration (in case Varnish is too powerful for you)
* Simple patch for provision_apache.drush.inc - see http://omega8.cc/dev/provision.patch
* Easy to understand and use Aegir directories tree.

10 comments · Read more
omega8cc's picture

PHP FastCGI with Nginx? The answer: PHP-FPM server

Do you still use spawn-fcgi with Nginx? It's time to consider PHP-FPM.

PHP in the form in which it is available from php.net has a number of well-known issues associated with the use of the FastCGI SAPI in production. See this comparison chart of problems and how php-fpm handles them, when enabled with the FastCGI SAPI.

Features available only in PHP-FPM:

2 comments · Read more
Syndicate content