Skip to content

Instantly share code, notes, and snippets.

@tystr
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tystr/d34a441bdd4d76a59b57 to your computer and use it in GitHub Desktop.
Save tystr/d34a441bdd4d76a59b57 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name ~(?<parentjob>[^_]+)_(?<childjob>[^.]+)\.mydomain\.dev;
location / {
root /var/lib/jenkins/workspace/$parentjob/$childjob/web;
return 200 $childjob;
try_files $uri /app.php$is_args$args;
}
}
$ curl mydomain-test-suite_DEV-214-authentication.mydomain.dev
dev-214-authentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment