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 vô hiệu hóa script php trong các folder uploads

There are some times when your application needs to write data into some files and in order to achieve that you need to give writing permissions to certain directories like tmp, cache, logs and many others. The issue is that global writing permissions is a big security problem, because it allow anyone to upload malicious […]

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 cài đặt Linux, nginx, MySQL, PHP (LEMP) stack trên CentOS 6

LEMP stack is a group of open source software to get web servers up and running. The acronym stands for Linux, nginx (pronounced Engine x), MySQL, and PHP. Since the server is already running CentOS, the linux part is taken care of. Here is how to install the rest. Step One—Install the Required Repositories We […]

Hướng dẫn cài đặt Rails nginx với Passenger on VPS Ubuntu

Step One— Install Ruby with RVM Before we do anything else, we should run a quick update to make sure that all of the packages we download to our virtual server are up to date: sudo apt-get update Once that’s done, we can start installing RVM, Ruby Version Manage, on our VPSr. This is a […]

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 […]