Adds support for root context redirection

This commit is contained in:
Ricardo Pchevuzinske Katz 2017-03-12 19:06:10 -03:00
parent dd7f8b4a97
commit 04af55af3c
5 changed files with 32 additions and 2 deletions

View file

@ -236,7 +236,11 @@ http {
ssl_verify_client on;
ssl_verify_depth {{ $location.CertificateAuth.ValidationDepth }};
{{ end }}
{{ if not (empty $location.Redirect.AppRoot)}}
location = / {
return 302 ${{ location.Redirect.AppRoot }};
}
{{ end }}
{{ if not (empty $authPath) }}
location = {{ $authPath }} {
internal;