Tags » Nginx

nginx - block ip-address\subnet

content of /etc/nginx/sites-available/my_site

location / {


proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;

Nginx setting for securing your Web Application

1. Block Exploits, SQL Injections, File Injections, Spam, User Agents, Etc.

Thanks to Falko Timme for his blog. You need to add following code in your server block. 374 more words


My documentation for deploying Flask apps with uWSGI and Nginx on Ubuntu server

I was just asked on Twitter by @cshepp11 about deploying Flask apps. As it so happens I have my own set of documentation for manually deploying one on… 849 more words

Coding And Scripting

Install Prosper202 with Nginx, MySQL and PHP-FPM on Ubuntu

In this tutorial we are going to show you how to install Prosper202. Made by Tracking202, Prosper202 is a self-hosted application that lets you track and optimize all your marketing campaigns. 19 more words

Launching nginScript and Looking Ahead

I’ve been wanting to add more scripting capabilities to NGINX for a long time. Scripting lets people do more in NGINX without having to write C modules, for example. 130 more words


Setting SSL Comodo on Nginx CentOS 6

  1. to purchase SSL with current information
    open Terminal
  2. openssl req -new -newkey rsa:2048 -nodes -keyout www_something_com.key -out www_something_com.csr

    www_something_com.key = information system for nginx configuration…

157 more words

How to Set HTTP Password With Nginx On Ubuntu

Install Apache Utils:

 sudo apt-get install apache2-utils

Create a user with a password:

sudo htpasswd -c /etc/nginx/.htpasswd USERNAME

Edit /etc/nginx/sites-available/example.conf

  location / {
      ... 18 more words