Skip to content

Instantly share code, notes, and snippets.

@zeqk
Created January 5, 2021 23:32
Show Gist options
  • Save zeqk/579d4ca12ff63c2496d1426677487b63 to your computer and use it in GitHub Desktop.
Save zeqk/579d4ca12ff63c2496d1426677487b63 to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name ~^((?<subdomain>.+)\.)?(?<domain>.+)\.171.11.100.118.xip.io$;
# server_name ~^(?P<ci_build_ref_slug>.+)?(?<domain>.+).171.11.100.118.xip.io$;
add_header Content-Type text/plain;
if ($subdomain = hola) {
return 200 'chau $subdomain $domain';
}
if ($subdomain = chau) {
return 200 'hola $subdomain $domain';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment