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 advice, configuration examples and tuning. This group was born from a long thread about Nginx and Boost integration.
Nginx for Drupal configuration projects/examples:
Barracuda Aegir by omega8cc (Drupal.org)
Boost compatible by yhager (GitHub)
Idiosyncratic bleeding edge config by perusio (GitHub)
Please file issues, post patches and improvements for projects hosted on GitHub on the GitHub issue tracker.
Nginx, CDN and SEO
Hi,
I use a CDN module for the parallel request.
But it creates a SEO problem. Same article can me available from many sub-domains:
mysite.com/article
cdn1.mysite.com/article
cdn2.mysite.com/article
cdn3.mysite.com/article
Nginx w/ fastcgi php-fpm - Results & Problem
I've been using nginx as a static file server and a reverse proxy to apache mod_php for a while now and it's been great. I had some time to experiment with the full monty of nginx recently on a development box. I thought I'd share some of my simple benchmarks vis-a-vis my old setup, and also pose a question re: a problem I've encountered. First the benchmarks:
<
table>
Nginx and ESI
Hi,
I use Perusio's Nginx config (https://github.com/perusio/drupal-with-nginx), there is any way to use it with ESI module? (http://drupal.org/project/esi)
Or there is no real advantages to use ESI over http://drupal.org/project/cache_warmer? Installation of Cache Warmer looks too complicated, ESI must be easier.
Thanks!
Read moreGood Nginx reverse proxy tutorial
i am currently trying to install nginx as a reverse proxy on an apache2 debian squeeze server. I tried using nginx on its own but kept facing problems so i decided to use apache as am more familiar with it. Is there a good recent tutorial i can follow? the pressflow7 site will have a lot of images. Thanks in advance.
Read moreNginx security
Hi,
I just put a phpinfo.php file to the sites/mysite/files/imagedirectory and was able to run it. I think is not too secure...
Any way to protect a specific directory from running a php files? Or disable to run any .php to the files folder and all sub-folders?
What exactly must be protected (maybe boost directory)? Or just /files and /tmp?
Thanks
Read moreDrupal with Nginx cannot CHMOD the folders
Hi,
With apache Drupal has able to set the folder permissions. But with Nginx I must to do that manually,
Maybe because my Nginx/Group user is Nginx and folder's owner/group is Root?
Any suggestion?
Thanks
Read moreQuestion about installation via "yum install ngix" and optional modules
Hi,
I just installed nginx via yum install nginx (Cent OS 6). But how can I enable optional modules? Like: --with-http_realip_module or --with-http_image_filter_module?
Thanks!
Read moreNginx: Problem with ‘+’, ‘&’ in filename for ImageCache and unescape URLs rewrite question.
Hello, I am investigating a problem using Nginx with imagecache.
I have described the problem in the Imagecache issue queue http://drupal.org/node/615418#comment-5981692
In a nutshell, Imagecache is not renaming files correctly on i) file upload and ii) using the Media module for accepting Youtube links. One suggestion is using a Rewrite rule for 'B' (escape backreferences) if using Apache (reported as working). However we are using Nginx.
I am using perusio https://github.com/perusio/drupal-with-nginx config with Drupal 7.14 for testing.
Read moreNginx + php-fpm continuesly "execution timed out" ?
Dear Nginx/Php-fpm users,
I installed a new VPS for testing pressflow with nginx/php-fpm ,but I seem to have somekind of unkown issue.
When I browse around on my website, installing a small modules or going to a simple page I sometimes get a nginx "504 Gateway Time-out"
After checking all the logs it seems the main cause is php-fpm that "execution timed", as i have given this option in my php-fpm config and set to 120s (request_terminate_timeout = 120s)
Newbie's Guide to nginx?
HI,
I'm attempting to get nginx and php fpm up running on a linode 512 and having some issues. Most tutorials that I find are geared towards folks with more knowledge than me. What I'm needing I think is a total newbie's guide.
Things I find I need to know most guides don't tell me:
What php modules to install and enable before configuring nginx.
What users to create, if any, for the web server (I keep seeing www-data reference in some places)
nginx + drupal 7 + freetds
hi all,
we've spent sometime building up a soluting for a city administration in Brazil, using Drupal 7 and SQL Server. thing is: someway up in the end of development we got to know the guys there are using nginx as their web server.
Read moreHELP : nginx script required
I am using nginx as my webserver and i want to use it as a reverse proxy because am afraid installing varnish would waste ram. Does anyone know were i can get a good script that will enable be to achieve this. I am using a debian server, mysql and pressflow 7. I've heard of the cache warmer module but am not sure how to use it.
Read moreSetting up a linode 512 (ubuntu 12 LTS) nginx server for Drupal 7 and need advice
Hi,
I'm in the process of building a linode 512 nginx-based server, and am in need of advice. My end goal is for the server to host a number of course sites for college writing courses. The sites are drupal 7 based, and use a decent number of modules:
Chaos Tools
Panels
Views
Workflow
Editable Fields
Private Messaging
Organic Groups
Heirarchical Select
Entity
Token
Menu Token
Switchtheme
Webform
Date
Calendar
Problem with the configuration of simple urls.
Hi
From the moment of the installation of the new server I have a problem with placing simple url. I tried to use the previous configuration and unfortunately is out of order.
I tried also following hints:
- http://github.com/yhager/nginx_drupal
- http://wiki.nginx.org/Drupal
- http://github.com/perusio/drupal-with-nginx
At these NginX configurations he is showing the plenty of mistakes and unfortunately is out of order...
I use:
- Ubuntu 11.04
- Fpm-php
- Nginx 1.2.0
- Pressflow 7.
My nginX.conf:
user www-data;
worker_processes 2;
What would be the best caching mechasnim to be used with Drupal 7 & Nginx?
What would be the best caching mechasnim to be used with Drupal 7 & Nginx?
Read moreAfter implementing perusio's config for d7+boost, module installation fails
When I login with admin role and navigate to Modules > Install Module, pick a local file and then click Install I get redirected to /authorize.php?batch=1&op=start&id=12 which generates a 404. This happens with perusio's drupal.conf as well as drupal_boost.conf. Reverting to MKTecknology's very basic nginx.conf restores functionality.
System details:
Running Arch Linux:
$ uname -a
Linux charon 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64 Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz GenuineIntel GNU/Linux
$ nginx -V
nginx version: nginx/1.1.18
Charset in header for Drupal 6 Boost + Nginx (perusio config)
Hi,
Using perusio's config on a Drupal 6 (pressflow 6) site with Boost and nginx, it looks like the boost cached pages don't have a charset specified. Google's pagespeed extension reports:
"The following resources have no character set specified in their HTTP headers. Specifying a character set in HTTP headers can speed up browser rendering."
Should this be added to the nginx config somewhere?
Thanks,
Chad
Recommended gzip compression config
It used to be that gzip compression setting were found within the nginx.conf file, such as:
gzip on;
gzip_comp_level 1;
gzip_proxied any;
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;However, looking over the latest within the nginx-for-drupal repo it's simply turned on by default.
Read morenginx Drupal stack
Last updated by brianmercer on Fri, 2012-03-30 23:54
I've been learning puppet this week and turning my system into a puppet config. It's gotten me thinking of all the things that go into a system and I'd appreciate any input.
What are the components of a good Drupal/nginx stack?
Software:
* nginx
* mysql/mariadb/percona
* memcache/redis
* php-fpm
* php-apc
* php-gd
* php5-mysqlnd
* fcgiwrap (for awstats)
* git
* php5-curl
* php5-xhprof
* awstats
* drush
* imagemagick/graphicsmagick?
* collectd
* duplicity for off-site backup
* postfix
* ssh
Best method for installing Nginx + Drupal + node.js
I'm tasked here at work to set up a server that Drupal can act as the front end to some stuff we are doing with node.js
I was wondering if on with ubuntu 10.04 lts server I would first set up nginx + mysql + php-fpm and get drupal up and running then work on installing node.js , im going to assume and one should never but this should be semi straight forward.
Anything special I need to do that people who have gone down this route would suggest..
Can I run them both on the same server or should i separate them both?
cheers..
Read more

