To avoid /etherpad/ matched by fallback: location ~ ^/([^/?&:'"]+)/(.*)$
mentioned in commit 68f97485