Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name www.bdneg.com;
- #add_header Cache-Control public;
- access_log /var/log/nginx/www.bdneg.com.access.log;
- error_log /var/log/nginx/www.bdneg.com.error.log error;
- ## Request-range protection fix.
- if ($http_range ~ "(?:d*s*-s*d*s*,s*){5,}") {
- return 416;
- }
- ## Deny access based on HTTP method
- if ($bad_method = 1) { return 444; }
- ## Deny access based on the User-Agent header
- if ($bad_bot = 1) { return 403; }
- ## Deny access based on the Referer header
- if ($bad_referer = 1) { return 403; }
- location = /robots.txt { access_log off; log_not_found off; }
- location = /favicon.ico { access_log off; log_not_found off; }
- location = /aes.min.js {
- gzip on;
- gzip_min_length 1000;
- gzip_types text/plain;
- root /var/www;
- }
- location = /cookies.html {
- root /var/www;
- }
- location / {
- testcookie on;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_pass http://202.4.96.15;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement