FAQ

Page Discussion History

RewriteMultiCondExample

Revision as of 19:30, 22 September 2010 by MichaelLustfield (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
location /xxxx/ {
  set $test "";
 
  if ($request_method = POST) {
    set $test  P;
  }
 
  if ($http_cookie ~* "CCCC=.+(?:;|$)" ) {
    set $test  "${test}C";
  }
 
  if ($test = PC) {
    #rewrite rule goes here.
  } 
}