Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Add trailing slashes to nginx-alpha ingress config #1267

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ingress/controllers/nginx-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,18 @@ spec:
- host: foo.bar.com
http:
paths:
- path: /foo
- path: /foo/
backend:
serviceName: echoheaders-x
servicePort: 80
- host: bar.baz.com
http:
paths:
- path: /bar
- path: /bar/
backend:
serviceName: echoheaders-y
servicePort: 80
- path: /foo
- path: /foo/
backend:
serviceName: echoheaders-x
servicePort: 80
Expand Down
2 changes: 1 addition & 1 deletion ingress/controllers/nginx-alpha/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ http {
{{ range $path := $rule.HTTP.Paths }}
location {{$path.Path}} {
proxy_set_header Host $host;
proxy_pass http://{{$path.Backend.ServiceName}}.{{$ing.Namespace}}.svc.cluster.local:{{$path.Backend.ServicePort}};
proxy_pass http://{{$path.Backend.ServiceName}}.{{$ing.Namespace}}.svc.cluster.local:{{$path.Backend.ServicePort}}/;
}{{end}}
}{{end}}{{end}}
}`
Expand Down