E-Journals

November 18, 2009

How To Automatically Start Nginx & Fastcgi on Reboot on Fedora Linux

Filed under: IT — Tags: , , , — MOIN @ 7:14 pm

nginx [engine x] is a high quality, light footprint (much ligher than Apache HTTPD), high performance HTTP server and mail proxy server written by Igor Sysoev. nginx is distributed under BSD license unlike its competitor Lighttpd. We are progressively transferring our sites over to nginx. Today when I had to restart the server, I realized (after few hours) with horror that we had forgot to add the script to start nginx automatically after reboot. When you want any command to execute everytime after a reboot you should add it to /etc/rc.local. The commands in rc.local are executed *after* all the other init scripts. To automatically start nginx as well as fastcgi on reboot you should add the following lines to /etc/rc.local at the end – (more…)

How To Run phpBB on Nginx With Virtual Hosting

Filed under: IT — Tags: , , — MOIN @ 7:11 pm

We now have our phpBB forum running on Nginx web server, a high quality and significantly better performing web server than Apache HTTPD. Soem of the challenges we faced were:

1. We use nice permalinks in the forum so there are lots of apache httpd rewrite rules in .htaccess files which had to be converted to nginx format.
2. Additionally we also had to configure it for a virtual hosting setup where the same IP address (server) is shared by multiple websites. (more…)

Top 10 Nginx Tutorial

Filed under: IT — Tags: — MOIN @ 7:09 pm

Nginx is a free open source web server, reverse proxy and IMAP/POP3 proxy server. Nginx has grown into a feasible alternative for the much hyped Apache. It has grown over Apache with terms of low memory footprint and stability. Moreover, Nginx is gaining mommentum as an efficient and perfect for host for WordPress. It’s simple configuration, rich features, minimal resource consumption and capability to avoid memory leak over time has made it a substitute for Apache. There are millions of site using Nginx and there is a large chunk considering a move to take advantage of this high performance HTTP server. (more…)

Nginx Hacking Tips

Filed under: IT — Tags: , — MOIN @ 7:07 pm

Nginx is a high performance web server and mail proxy server written by Igor Sysoev and a good replacement for Apache HTTPD, the market leader. Nginx is rapidly increasing its market share with major websites joining it like wordpress.com. In the June 2008 Netcraft survey LiteSpeed lost more than 600 thousand sites during this survey, while nginx gained more than a million sites; more than doubling in numbers. The WordPress blogging system recently converted all of its load balancers to nginx, using the upstream hash module to serve 8-9 thousand requests per second. We too have decided to move some of our websites to Nginx. Here are few essential tips and general guidelines for configuring Nginx. This is not a substitute for reading the documentation (rtfm). However when you are stuck even after reading and re-reading the nginx documentation then read below. You will understand the value of the tips below only then :)

We will focus on general configuration tips as well as for virtual hosting.

Note: In virtual hosting you use the same IP address for multiple websites. Each website will most likely have separate .htaccess (assuming you were initially hosted on Apache HTTPD web server) files, separate root directory etc. For example in one website you have wordpress, while on the other you may have MODx and who knows maybe phpBB on the third. All these different .htaccess directives needs to go in the nginx configuration file(s). (more…)

Powered by WordPress