Skip to content
Snippets Groups Projects
Commit 5ae80497 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Allows www on hostnames

parent a29fa690
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@ mode http
{{$data := json .Value}}
# {{base $hostname}}:
acl https_{{base $hostname}} hdr(host) -i {{base $hostname}}
acl https_{{base $hostname}} hdr(host) -i www.{{base $hostname}}
use_backend {{base $hostname}} if https_{{base $hostname}}
{{end}}
{{end}}
......@@ -44,6 +45,7 @@ frontend http-in
{{$data := json .Value}}
# {{base $hostname}}:
acl is_{{base $hostname}} hdr(host) -i {{base $hostname}}
acl is_{{base $hostname}} hdr(host) -i www.{{base $hostname}}
use_backend {{base $hostname}} if is_{{base $hostname}}
{{end}}
{{end}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment