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.
Expires for CloudFront
Hello!
I am trying to setup AmazonCloud front, but when I try to test with webpagetest.org I receive warning, that the files on the cdn are without no cache expires. You can see the result here:
http://www.webpagetest.org/result/101122_DBKG/1/performance_optimization...
One little snipet:
URL: http://uhaaacdn.imgcdn.net/files/imagecache/Four/6_2_0.jpg
Host: uhaaacdn.imgcdn.net
IP: 204.246.169.196
Location: Seattle, WA*
Error/Status Code: 200
Start Offset: 3.227 s
Time to First Byte: 229 ms
Content Download: 132 ms
Bytes In (downloaded): 7.2 KB
504 Gateway Time-out in AHAH processing with AHAH Helper Module
Hi,
i've moved my page very recently to NGINX (was Apache before that) and everything is running great and fast so far.
But there is one problem which is driving me mad:
My AHAH enhanced form elements, which were running normally on Apache, don't work on NGINX. The little throbber graphic is just spinning around for one minute and then NGINX returns a 504 Gateway Time-out for the request.
This behavior doesn't happen in AHAH example or AHAH Helper Example Module, so I am aware that it definitely has to be caused by something in my forms.
My Nginx config complete or sort of with an appendix on TLS/SSL
I've finally completed my Nginx config for Drupal.
Feel free to comment on it and suggest improvements.
In terms of SSL/TLS I opted for the defaults in Nginx (after 0.8.21) that limit the available protocol versions do SSLv3 or later and also cross out support for MD5 as message digest algorithm and anonymous Diffie-Hellman key exchange.
Read moreAegir/Nginx : Boost rewrite rules don't work for site root / <front> page
I'm using Aegir & Nginx combination (through omega8cc's great barracuda install scripts), and everything is fine and dandy.
However, when using Boost, I can get every page to cache correctly except for the homepage or a site.
The Boost rules are set to allow it, and I can see in the cache directory that the file is getting saved as it should (it becomes _.html).
Read morebarracuda hanging on install... more details
This is actually a follow up to a previous post.
I am trying to use BARACUDA on a VPS from Burst.net
the domain is: 33cloud.com
I am starting from a plain vanila Ubuntu 10.04 32 bit system
The only thing I am doing is adding
apt-get install nano
apt-get install git-core git-gui git-doc
git clone http://github.com/omega8cc/nginx-for-drupal.git
I am able to ping 33cloud.info server.33cloud.info aegir.33cloud.info
I set the hostname to 33cloud.info
the only think I am doing to the installation script is changing the email address.
Read moreWhy to use nginx for drupal
This article shows a great insight about why to use NGINX for drupal
http://mikkel.hoegh.org/node/184
Nginx and Drupal 7
Has anyone tried to run the new drupal 7 beta1 with nginx?
I'm getting a very strange behavior. The site works perfectly in the browser but if I do a:
curl -I mysiteI get a FastCGI timeout: status code 499. That's strange. I had to add:
proxy_ignore_client_abort on;to my server config to make it work. Of course the HTTP request status fails miserably. That's how I got alerted to this.
What's your experience with D7?
Thanks,
Read moreDo you use nginx on localhost for drupal development?
Not Able to access chive and SqlBuddy
Hello
I installed the latest script on linode lucid vps. Everything is working fine Except i am not able to login to sqlbuddy and chive.
The install script says
Your (optional) Chive MariaDB Manager will be available at https://chive.lixxx-xxx.members.linode.com.
* Your (optional) SQL Buddy MariaDB Manager will be available at https://sqlbuddy.lixxx-xxx.members.linode.com.
* Your (optional) Collectd Graph Panel will be available at https://cgp.lixxx-xxx.members.linode.com.
Getting Error in the install script Octopus on Linode Lucid
This is the error that is coming when i install directly on a blank vps on linode lucid instance.
The scripts are installed fine. Barracuda installs ok but i get error in octopus , but the script completes and when i go to http://octopus.my-domain.com it gives me page not found.
Can this be corrected.My wild card enties are fine and i was able to install the scripts fine before yesterday.Are there any changes Done in the script or i am missing something.
Please suggest.
I have already installed 3 times and it gives me the same error.
Serving static .html files in a Barracuda Aegir Drupal site
Greetings. I am looking for some help regarding how to add rewrite rules, or some equivalent to them for my Barracuda Aegir setup. These can just be nginx tips at this point.
If I have a folder at /var/aegir/platform/sites/www.mydomain.com/files/newsletters
in what way could I work with my site's config file to show www.mydomain.com/newsletters ?
This feels relatively simple but I have tried a few things and none of them seem to work. Thanks in advance for considering this.
Read moreGetting https to work smoothly
Hello,
I am having trouble getting drupal ( Barracuda/Octopus/Pressflow6x ) to re-direct for Ubercart and user login pages. I do have SSL running and manually going to the HTTPS pages, I am trying to achieve smart switching so that certain pages are switched to https on the fly. Most importantly cart/checkout, but also user/login.
Read moreUnable to create external site in aegir ( using barracuda/Octopus )
I have used barracuda/octopus on linode vps: lucid. The instance is on aegir.my-domain.com.
I want to create a different drupal website on / folder or make a new external website.
I have referred this document to create virtual host.
When i did this as below for my vps, and when i restart nginx it gives me this warning:
conflicting server name "mindtrades.com" on 0.0.0.0:80, ignored ( where my domain name is mindtrades)
and it gives me default site under construction .
As i am new to nginx, if somebody can guide me completely step to step, it would be highly appreciated.
Thanks
Vin
nginx-0.8.51 stable version has been released.
Is time to upgrade. http://nginx.org/en/download.html
Read moreMicro Amazon EC2 AMI with nginx, php5.3.3 and sqlite
Amazon has announced micro instance, which is cheaper. The sluggish apache2 stack may not work well on this limited resource. So I am planning to install drupal on nginx and sqlite, with custom compited lite php.
Read morePacktpub.com - Nginx HTTP Server Book - July 2010
https://www.packtpub.com/nginx-http-server-for-web-applications/book
In detail
This book serves as a detailed guide to setting up Nginx in different production situations: as standalone server, as reverse proxy, interacting with applications via FastCGI, and more. In addition, the complete directive reference will be your best friend at all stages of the configuration and maintenance processes.
Read moreOctopus and Barracuda - Dual-Core Aegir Installer with 10+ Platforms - deploy, upgrade and clone Aegir instances in 8 minutes! (big update)
UPDATE: Barracuda and Octopus new home is on d.o, plus there is BOA group:
http://drupal.org/project/barracuda
http://drupal.org/project/octopus
http://groups.drupal.org/boa
NOTE: this thread is a continuation of previously single-core Barracuda Installer introduction: http://groups.drupal.org/node/84074.
Read moreNeed help on nginx conf to work with ubercart file download
problem
My current nginx conf doesn't work with ubercart file download.
nginx can't get the files sold by ubercart file download
http://example.com/download/26215/dacaabe7a657626941cfc20ef4c45ad2
GET /download/26215/dacaabe7a657626941cfc20ef4c45ad2 HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 115
Read more php-cgi server stops
I have followed the instructions at http://github.com/yhager/nginx_drupal to run my druapal sites with nginx. The php-cgi server process dies at least once a day, so I have to restart the server manually. Can I have this done automatically? What is the best was, to start the php-cgi server on debian lenny?
Read morenginx_ensite and nginx_dissite for quick virtual host enabling/disabling
Hello,
I created a shell script that replicates de Debian a2ensite/a2dissite Apache utilities for nginx. The Apache utilities are written in Perl. I sticked with Bash and awk.
There's also a Bash completion script included. Enjoy.
It's on github nginx_ensite.
Read more







