SHARE
TWEET

www.bdneg.com

a guest Nov 30th, 2013 576 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.         listen 80;
  3.         server_name www.bdneg.com;
  4.         #add_header  Cache-Control public;
  5.         access_log  /var/log/nginx/www.bdneg.com.access.log;
  6.         error_log   /var/log/nginx/www.bdneg.com.error.log error;
  7.  
  8.         ## Request-range protection fix.
  9.         if ($http_range ~ "(?:d*s*-s*d*s*,s*){5,}") {
  10.                 return 416;
  11.         }
  12.  
  13.         ## Deny access based on HTTP method
  14.         if ($bad_method = 1) { return 444; }
  15.  
  16.         ## Deny access based on the User-Agent header
  17.         if ($bad_bot = 1) { return 403; }
  18.  
  19.         ## Deny access based on the Referer header
  20.         if ($bad_referer = 1) { return 403; }
  21.  
  22.         location = /robots.txt  { access_log off; log_not_found off; }
  23.         location = /favicon.ico { access_log off; log_not_found off; }
  24.  
  25.         location = /aes.min.js {
  26.                 gzip on;
  27.                 gzip_min_length 1000;
  28.                 gzip_types text/plain;
  29.                 root /var/www;
  30.             }
  31.  
  32.         location = /cookies.html {
  33.                  root /var/www;
  34.          }
  35.  
  36.             location / {
  37.                 testcookie on;
  38.                 proxy_set_header Host $host;
  39.                 proxy_set_header X-Real-IP $remote_addr;
  40.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  41.                 proxy_pass http://202.4.96.15;
  42.             }
  43.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top