Created
January 5, 2021 23:32
-
-
Save zeqk/579d4ca12ff63c2496d1426677487b63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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