How To Block Exploits, SQL Injections, File Injections, Spam, User Agents, Etc. to your Nginx

Exploits, SQL Injections, File Injections, Spam, User Agents, Etc. are the common problem for the web server administrators. How to block this? In this article I will show you how to block the above mentioned problem. Append the below mentioned configuration to your nginx VirtualHosts.

Whenever one of the rules matches a request, a […]
Continue reading…

 

How to restrict access to a URL in Ngnix

Sometimes it needs to restrict some URLs of your application. Suppose, if you have a WordPress application then it doesn’t need to give access to the URL http://www.example.com/wp-admin to all. If you are restricting the URL then you are also preventing brute force attack to to URL. If the URL is available to all then […]
Continue reading…

 

Installing Nginx With PHP5 (And PHP-FPM) On CentOS 6.0 to run a CakePhp application.

First update your machine.

Install all development tools

Install MySQL

To install Php

Install some dependency applications for nginx

Download ngnix for installation

When the configuration process completes successfully, you will see the following output:

Issue more two commands to complete nginx setup.

Create an user named […]
Continue reading…

 

Generate CA and Self-signed Certificate with Openssl.

Steps to create a self-signed certificate: Generate a server key:

create a certificate signing request

Now sign the certificate signing request

Make a version of the server.key which doesn’t need a password:

Steps to create a self-signed certificate with CA: Generate your own CA (Certificate Authority)

Generate a server key […]
Continue reading…