Welcome! Log In Create A New Profile

Advanced

IBM Lotus Domino - reverse proxy - do not cache if authenticated web user (based on cookie)

Anonymous User
March 30, 2010 04:04AM
Hi

My backend is IBM Lotus Domino and its HTTP task. I have application that
has admin panel thats been used with end-user's browser.
Currently i am using cache but that admin panel goes crazy because of
caching. So, goal is to prevent caching if user is authenticated.
IBM Lotus Domino uses Cookie named DomAuthSessId which has session id.

So on global level i have configured:

......
http {

proxy_cache_path /usr/share/nginx/cache levels=1:2 keys_zone=one:10m
max_size=1G;
proxy_temp_path /usr/share/nginx/tmp;
proxy_cache_key "$scheme$host$request_uri";

proxy_cache_valid 200 302 5m;
proxy_cache_valid 301 1h;
proxy_cache_valid any 1m;

proxy_cache one;

..... and so on

and on virtual server level

server {
server_name www.somedomain.fi;
default_type text/html;
root /some/directory;
location / {
proxy_pass http://some.ip.add.ress;
}
......
}

Would this work if i do something like this?

location / {
# if authenticated domino user, disable cache
if ($http_cookie ~* "DomAuthSessId") {
proxy_cache_valid 200 302 304 none;
proxy_cache_valid 301 none;
}
proxy_pass http://some.ip.add.ress
}


Or any ideas how it should be done?



Terveisin/Regards,
Pekka Panula, Sofor Oy - Jatkuvat palvelut

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

IBM Lotus Domino - reverse proxy - do not cache if authenticated web user (based on cookie)

Anonymous User March 30, 2010 04:04AM

Re: IBM Lotus Domino - reverse proxy - do not cache if authenticated web user (based on cookie)

Ryan Malayter March 30, 2010 12:00PM

Re: IBM Lotus Domino - reverse proxy - do not cache if authenticated web user (based on cookie)

Anonymous User March 31, 2010 05:48AM

Re: IBM Lotus Domino - reverse proxy - do not cache if authenticated web user (based on cookie)

Ryan Malayter April 05, 2010 11:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 118
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready