Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     server_name domain.com;
  4.  
  5.     testcookie off;
  6.     testcookie_name BPC;
  7.     testcookie_secret keepmescret;
  8.     testcookie_session $remote_addr;
  9.     testcookie_arg attempt;
  10.     testcookie_max_attempts 3;
  11.     testcookie_fallback /cookies.html?backurl=http://$host$request_uri;
  12.     testcookie_get_only on;
  13.  
  14.     location = /cookies.html {
  15.         root /var/www/public_html;
  16.     }
  17.  
  18.     location / {
  19.         testcookie on;
  20.         proxy_set_header Host $host;
  21.         proxy_set_header X-Real-IP $remote_addr;
  22.         proxy_pass http://127.0.0.1:8080;
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement