Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug 1294371] Handle multiple custom domain names #50

Merged
merged 1 commit into from Sep 8, 2016

Conversation

flamingspaz
Copy link
Contributor

{{- $redirect_301 := (print "redirects/" $aws_env "/301") -}}
{{- $redirect_302 := (print "redirects/" $aws_env "/302") }}
{{ range ls $redirect_301 }}
acl {{ .Key }} hdr(host) -i {{ .Key }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use something like redirect-{{ .Key }} to avoid any collision in various keys.

@johngian
Copy link
Contributor

johngian commented Sep 8, 2016

Please add some comments in the template so we end up with a more human-readable result in the haproxy heads.

@flamingspaz
Copy link
Contributor Author

Done

@johngian
Copy link
Contributor

johngian commented Sep 8, 2016

Code looks OK.

@johngian
Copy link
Contributor

johngian commented Sep 8, 2016

r+

@johngian johngian merged commit ba4d51e into mozilla:master Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants