Im looking to do the following match:
*-server.*.* for example - dev-server.anydomain.anytld
in the same file, another server:
*-cloud.*.* for example - dev-cloud.anydomain.anytld
fallback - in the same file - if non of the above were NOT matched:
*.*.* for example - dev.anydomain.anytld or somethingelse.anydomain.anytld
This is what I have now which is not working:
server {
listen 80;
server_name ~(server)*$;
}
server {
listen 80;
server_name ~(cloud)*$;
}
server {
listen 80;
server_name *.*.*$;
}
you can use this tool to handle it https://nginx.viraptor.info/
Thanks