nginx

[HOW-TO] Config Nginx to work with Drupal 6

Yesterday, I’ve tried to setup Nginx as a Reverse Proxy for Apache – Worker MPM base webserver. I found that it doesn’t help my server performance as I expected. So, I decided to try to set up Nginx to be a Webserver to see if Nginx can give me a […]

Use Nginx as a reverse proxy for DirectAdmin

I try to use Nginx as a reverse proxy to see if there is any improvement over Apache Worker MPM or not. I found an instruction from DirectAdmin webboard but it’s quite old. So, I just tried to follow their steps and do some modification to match what I have […]

Nginx 502 Bad Gateway error

My server went down today and after restarting, it came up with a “Nginx 502 Bad Gateway” message. At first I thought its something related to the Nginx service, so restarted the nginx service but immediately realized it wasn’t the case. Nginx receives a request on port 80 and it […]

Top 20 Nginx WebServer Best Security Practices

Nginx is a lightweight, high performance web server/reverse proxy and e-mail (IMAP/POP3) proxy. It runs on UNIX, GNU/Linux, BSD variants, Mac OS X, Solaris, and Microsoft Windows. According to Netcraft, 6% of all domains on the Internet use nginx webserver. Nginx is one of a handful of servers written to […]

running NginX 1.0 with PHP-FPM 5.3 on CentOS 5.x

PHP-FPM configuration First, download the latest version of PHP (5.3.6 as of this writing) and compile it with the –enable-fpm parameter to allow for the php-fpm binary to be built. # cd /usr/local/src/ # wget “http://be.php.net/get/php-5.3.6.tar.gz/from/this/mirror” # tar xzf php-5.3.6.tar.gz # rm php-5.3.6.tar.gz # cd php-5.3.6/ # ./configure –enable-fpm –with-mhash […]

HOWTO: Using Nginx

This instruction describes how to use nginx as reverse proxy for apache, also I’ll show some tips how use nginx for heavy loaded sites. Majority of my servers are freebsd boxes, so this howto oriented on freebsd, but I’ll show some tips for linux too. Nginx is a free, open-source, […]

Installing Nginx With PHP5 And MySQL Support On Debian Squeeze

Nginx (pronounced “engine x”) is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on a Debian Squeeze server with PHP5 support (through FastCGI) and MySQL support. I do not […]

Reduce Apache’s Load With Nginx On RHEL 5.2

This how-to describes how to install and configure Nginx to accelerate an Apache server based on RHEL 5.2.   1. Update your installed packages yum install update   2. Install new packages yum install -y httpd-devel wget http://rpmfind.net/linux/EPEL/5Server/i386/nginx-0.6.31-3.el5.i386.rpm rpm nginx-0.6.31-3.el5.i386.rpm   3. Edit /etc/nginx/nginx.conf Setting up nginx as a reverse […]

Installing Nginx With PHP5 And MySQL Support On Debian Etch

Nginx (pronounced “engine x”) is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on a Debian Etch server with PHP5 support (through FastCGI) and MySQL support. I do not […]