3 ms·
you probably don't need perl for that. afaics from the snippet, it fits into nginx mod_rewrite. maybe something like this: if ($http_cookie ~* "auth=1" ) {
by jsn 18y ago
you probably don't need perl for that. afaics from the snippet, it fits into nginx mod_rewrite. maybe something like this:
if ($http_cookie ~* "auth=1" ) {
proxy_pass http://backend http://backend ;
break ;
}
if (!-f $request_filename) {
proxy_pass http://backend http://backend ;
break ;
}