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.

perusio's picture

Drupal module that provides Nginx X-Sendfile (X-Accel-Redirect) support for fast private file transfer

Just pushed it to github. Here's the module for Drupal 6. Up and coming is getting the module hosted on d.o and providing a Drupal 7 version.

Read more
aharown07's picture

With nginx, should I enable "page compression" in the Drupal performance settings?

Just starting running my sites on an nginx server I set up w/info from vpsBible.com
I'm not sure if nginx normally compresses/gzips or how to tell if I have that enabled. The Drupal perf. page says not to use page compression if the web server does, so... anyone know if nginx + Drupal page compression is a bad idea?
...or how to tell if my nginx is compressing or not?

Read more
CosminG's picture

What linux distribution do you use for your nginx server?

Debian
26% (21 votes)
Ubuntu
35% (28 votes)
CentOS
19% (15 votes)
Gentoo
7% (6 votes)
FreeBSD
7% (6 votes)
Archlinux
4% (3 votes)
other
2% (2 votes)
Total votes: 81
alex.cunha's picture

504 Gateway Time-out when doing admin/reports/updates/check

Hi,

I got "504 Gateway Time-out" when accessing admin/reports/updates/check on my local dev machine.

I suspect the problem is related with my slow internet connection. "updates/check" checks each module and theme for updates. I whant to give more time to nginx. Where I do that?

My configs are stock nginx 0.8.54 + php5-fpm (ubuntu desktop 10.10, I thing) with some changes I made for my environment and other changes are my trys to solve the 504.

/etc/nginx/sites-enabled/default:

server {
listen 82;

root /something/public_html/CMS;
Read more
threading_signals's picture

Only Epoll for Debian?

I'm curious if either kqueue (FreeBSD) or eventport (Illumos) will ever be ported to Debian.

This link http://www.daemonforums.org/showthread.php?t=2124

...suggests to me that either a Kqueue or an Eventport based kernel would be the fastest for Nginx, if the OS is stable.

http://snaprails.tumblr.com/post/325624962/linux-performance-benchmark-a...

Read more
AntiNSA's picture

Feeds importer on chron or manual import-- Anyone got it to successfully work with Aegir/Omega?

On chron run immediately am redirected to site status report, on manual import get timeout message. Whereas runs fine on pantheon / and standard drupal site install.

1) Is it working for you?
2) If so can you tell me what modifications you did that were able to get it work?

Thanks!

Read more
brianmercer's picture

nginx caching with selective page purging

Last week a new module appeared on Drupal.org named Purge.
Purge is designed to selectively purge affected pages from a caching reverse proxy after changes are made to the site. The Purge module can be used to add this functionality to the nginx native cache.

Read more
AntiNSA's picture

==========omega8cc====> Please tell me which default caching modules work best out of the box/as include with the barracuda/octopus system. Which modules are safe to enable, and which should be left disabled. caching/performance/ pressflow

==========omega8cc====> Please tell me which default caching modules work best out of the box/as include with the barracuda/octopus system. Which modules are safe to enable, and which should be left disabled. I am only talking about caching/performance based modules. Related to pressflow platform. Sorry.

Read more
AntiNSA's picture

I have a problerm that my caching values, disabled, normal, agressive, external, the values aer not saved when clicking on save. This occurs in new installs and imported sites. Anyone have any Ideas?

I have a problerm that my caching values, disabled, norma, agressive, external, the values aer not saved when clicking on save. This occurs in new installs and imported sites. Anyone have any Ideas?

Read more
AntiNSA's picture

Imagecache not working on stock drupal 6 omega pressflow install

http://community.aegirproject.org/node/308#comment-292

Hi everyone! I am troubleshotting why UI cant get image cache to work. I cant get to work on my imported site, so I created a fresh pressflow drupal 6 install. I have not altered the defauklt path and only installed translitration as required and the imageapi dependancy.

Image cache is not creating the directory needed within the files/imagecache/ folder and the sample image is being placed in the root of files.

Thanks for any help---

Robert

Read more
brianmercer's picture

Caching and 404s for aggregated js and css in D6

It's a recurring problem even without local caching, but especially with it. You go to update a module and then you run database updates. But part of that is clearing caches and now Drupal regenerates your aggregated js and css, which makes sense in case the updated module has changed its js or css files.

And then the problems occur. If you have a reverse proxy in front of your web server, it is still serving old cached pages that refer to old aggregated files. But those files no longer exist because Drupal has regenerated them and deleted the old ones.

Read more
Dew's picture

Images are missing in drupal 7 working on nginx

I welcome,

I am here new and if I am writing in the bad department I apologise. Around drupalem earlier I already had the contact but now already on seriously and wants on the base drupal 7 to build the web page. My server is VPS with the system ubuntu, I installed server www nginx(NGINX + PHP-FPM), because he is being efficienting very much and here my problem appeared. Because images which he is adding aren't reading carefully to articles. After using automatic sending the picture to the server the link to him is following:

Read more
AntiNSA's picture

Able to connect to the Chive login page, able to install and use octopus and barracuda, cant log in to chive? Whats my log in and pass?

http://chive.aegir.thecenterofthenet.com/index.php/site/login

works for me, and I have tried every password and login I know, but I cant log in, I get the error

CDbConnection failed to open the DB connection.

I think this is because I am using the wrong password. Do you have any idea?

Thanks!

Read more
smira's picture

downloading php pages ?

Hello fellow nginx users. I'm setting up my server to use nginx / php-fpm and I seem to have hit a brick wall. html pages are served correctly to the browser but requests for php pages prompt for download of the file.
default index.html => home.idea-team.org
test html page => home.idea-team.org/test.html
test php page (same page as above but with php extension) => home.idea-team.org/test.php
phpinfo page => home.idea-team.org/phpinfo.php

please check it out if you have a minute, hopefully it's something silly I overlooked

other info:
php 5.3.5
suhosin patch 0.9.10

Read more
perusio's picture

Nginx training on Drupal Events: how to do it?

We've just decided the final date for our 1st Drupalcamp in Portugal and I'm going to give a presentation on Nginx and Drupal. This will be the rework of a presentation I gave last November on a meetup at oPorto.

Read more
AntiNSA's picture

Omegga Aegir Installed with Octopus and Barracuda. Pressflow set up. Now how can I ftp and upload modules for site? How can I restore old.sql?

Im sorry, I thought that the omega was a complete site setup. I got it installed and successfully installed a pressflow site at mysite.com,

now I am trying to ftp and upload modules to my new created site directory, and I find that It is not configured . I am coming from a shared server, and this is my first time managing my own server. I thought that ftp was autmatically setup with aegir like it was on my old shared manage server, where I can use the user naem and loging and upload to the sites directory.

Its not working like that, so ok I know how to use filezilla to ftp to the root.

Read more
AntiNSA's picture

Setting up linode hostname ok, but recieving 404 error page with no errors on install / Here are steps to help people at linode.. I still need help :(

this is the email I sent tech support for linode:

Greetings!

Im trying to install omegga ngonx/aegir and I keep getting the error message re

r server has to have already working FQDN hostname matching your IP address.
This means you have to configure the dns for your server IP/hostname before
trying to use this install script. Reverse dns is not required.

  • Your hostname appears to be evobase - are you sure it's a valid FQDN hostname?

  • Are you sure your FQDN hostname matches your IP address: 173.255.219.45?

Read more
joanpc's picture

Last APC version seems to ignore .module files

Hi guys,

I just upgraded my APC version to the 3.1.6 and apc is only caching .php and .inc files. Anyone have the same problem? There's a know way of fixing this?

I will post the solution if i can find it :)

Thanks in advance.

Read more
ericrdb's picture

TinyMCE & Spellchecker & nginx 404 errors

Hi All,

Running perusio's nginx config, I'm getting 404s when attempting to use the spellchecker plugin for TinyMCE, similar to this issue: http://drupal.org/node/986730

It looks like this snippet in drupal_boost_drush.conf is blocking the spellchecker:

location ~* ^.+\.php$ {
  return 404;
}

Not being a regex guru, I'm not sure how to accommodate the spellchecker's need to access:
YOURWEBSITE/sites/all/libraries/tinymce/jscripts/tiny_mce/plugins/spellchecker/rpc.php

Can someone point me in the right direction? Thanks!

--
Eric DenBraber

Read more
Subscribe with RSS Syndicate content

Nginx

Group organizers

Group notifications

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