fix nginx config to be able to handle redirects for all subdomains