Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name domain.com;
- testcookie off;
- testcookie_name BPC;
- testcookie_secret keepmescret;
- testcookie_session $remote_addr;
- testcookie_arg attempt;
- testcookie_max_attempts 3;
- testcookie_fallback /cookies.html?backurl=http://$host$request_uri;
- testcookie_get_only on;
- location = /cookies.html {
- root /var/www/public_html;
- }
- location / {
- testcookie on;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_pass http://127.0.0.1:8080;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement