location ~* ^/backend/(?.*) { proxy_pass http://some$path; }