Multiple conditions for rewrite

Andrei GUDIU andreig at
Wed May 7 20:42:03 MSD 2008

heya heya
does anybody know how I could user ngx rewrite to port the mod_rewrite ability
to have multiple conditions ?
 RewriteCond cond1
 RewriteCond cond2
 RewriteRule xmoo bla

the current config I am using:
 if (cond1 && cond2) {

does not work (also using &, and does not work)

 if (cond1) {
  if (cond2) {

does not work either :(

Should I use something like the "break"/"last" combinations ?

More information about the nginx mailing list