Hướng dẫn cài đặt Mod_Security trên nginx

ModSecurity for Nginx has been available for a while and we can use it freely in our Nginx webserver. ModSecurity was originally deveoped for Apache webserver, but it’s not available to be integrated with Nginx server, even it is in Beta state it works perfectly in our test enviroment. So, let’s see how to install mod_security […]

Hướng dẫn cài đặt load balacing với Nginx webserver với nhiều VPS

Loadbalancing is a useful mechanism to distribute incoming traffic around several capable Virtual Private servers.By apportioning the processing mechanism to several machines, redundancy is provided to the application — ensuring fault tolerance and heightened stability. The Round Robin algorithm for load balancing sends visitors to one of a set of IPs. At its most basic […]

Hướng dẫn sửa lỗi Can’t load ‘/usr/local/lib64/perl5/auto/nginx/nginx.so’

While working on Nginx installation from source, I got the following error when I try to run nginx after compilation – [root@localhost nginx-1.6.0]# /usr/sbin/nginx Can’t load ‘/usr/local/lib64/perl5/auto/nginx/nginx.so’ for module nginx: /usr/local/lib64/perl5/auto/nginx/nginx.so: undefined symbol: ngx_http_perl_handle_request at /usr/share/perl5/XSLoader.pm line 68. at /usr/local/lib64/perl5/nginx.pm line 56. Compilation failed in require. BEGIN failed–compilation aborted. nginx: [alert] perl_parse() failed: 255 [root@localhost […]

Hướng dẫn setup Vhost cho Nginx trên Centos 6

Intro Make sure that nginx is installed on your VPS. If it is not, you can quickly install it with 2 steps. Install the EPEL repository: su -c ‘rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm’ Install nginx yum install nginx Step One— Create a New Directory The first step in creating a virtual host is to a create a […]

Hướng dẫn cấu hình Nginx Vhost trên Ubuntu 12.04

Set Up The steps in this tutorial require the user to have root privileges on the virtual private server. You can see how to set that up in the Initial Server Setup Tutorial in steps 3 and 4. Furthermore, if I reference the user in a step, I’ll use the name www. You can implement […]