Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 ; break ; }

if (!-f $request_filename) { proxy_pass http://backend ; break ; }



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: