...
Code Block |
---|
# handle errant login starters RewriteCond %{REQUEST_URI} /login-srv RewriteCond %{HTTP_COOKIE} !splogin RewriteRule ^/login-srv2x/(.*)$ /login-srv1x/$1 [PT] RewriteRule ^/login-srv11x/(.*)$ /login-srv1x/$1 [PT]... |
Testing
I use webisoget to test the proxy setup. Use its '-maxhop 1' option to single step through the many login redirections. You have to use your /etc/hosts file to direct the requests to particular hosts. The '-map' option won't work because libcurl caches mapped dns addresses and there's no way to prevent that (short of editing libcurl). The /etc/hosts file works well, though. You may want to increase the lifetime of your cookies during testing.
...