Nginx

Events happening in the community are now at Drupal community events on www.drupal.org.

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

Posted by superfedya on June 1, 2012 at 1:24am

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

Read more
18 comments Categories: , ,

Nginx w/ fastcgi php-fpm - Results & Problem

Posted by mesch on May 26, 2012 at 3:22pm

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>

Run VIRT RES SHR DAT 50% response time
mod_php ~50M 21-32M ~3.5M 26-37M
Read more

Nginx and ESI

Posted by superfedya on May 26, 2012 at 4:51am

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 more
48 comments Categories: , ,

Good Nginx reverse proxy tutorial

Posted by jasmineah on May 23, 2012 at 8:52pm

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 more

Nginx security

Posted by superfedya on May 19, 2012 at 2:55pm

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 more

Drupal with Nginx cannot CHMOD the folders

Posted by superfedya on May 15, 2012 at 2:39am

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 more

Question about installation via "yum install ngix" and optional modules

Posted by superfedya on May 13, 2012 at 4:00pm

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 more

Nginx: Problem with ‘+’, ‘&’ in filename for ImageCache and unescape URLs rewrite question.

Posted by Tim Jones Toronto on May 10, 2012 at 8:52pm

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 more
3 comments Categories: ,

Nginx + php-fpm continuesly "execution timed out" ?

Posted by janton on May 10, 2012 at 4:24pm

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)

Read more

Newbie's Guide to nginx?

Posted by Vidus on May 8, 2012 at 2:21pm

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)

Read more

nginx + drupal 7 + freetds

Posted by marquito on May 7, 2012 at 5:18pm

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 more

HELP : nginx script required

Posted by jasmineah on April 30, 2012 at 7:21pm

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 more

Setting up a linode 512 (ubuntu 12 LTS) nginx server for Drupal 7 and need advice

Posted by Vidus on April 30, 2012 at 1:50am

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

Read more

Problem with the configuration of simple urls.

Posted by Dew on April 25, 2012 at 11:11am

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:

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;

Read more

What would be the best caching mechasnim to be used with Drupal 7 & Nginx?

Posted by Baber Javed on April 19, 2012 at 5:43am

What would be the best caching mechasnim to be used with Drupal 7 & Nginx?

Read more

After implementing perusio's config for d7+boost, module installation fails

Posted by dfelicia on April 5, 2012 at 3:37pm

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

Read more
1 comment Categories: ,

Charset in header for Drupal 6 Boost + Nginx (perusio config)

Posted by chadcrew on April 4, 2012 at 1:40pm

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

Read more

Recommended gzip compression config

Posted by sirkitree on April 3, 2012 at 11:29pm

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 more

nginx Drupal stack

Posted by brianmercer on March 25, 2012 at 12:36am
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

Read more

Best method for installing Nginx + Drupal + node.js

Posted by gateway69 on March 20, 2012 at 2:12am

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
8 comments Categories: , ,
Categories:
Subscribe with RSS Syndicate content

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /