diff --git a/docs/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md b/docs/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md index 799d0457d6e..368c456f9fc 100644 --- a/docs/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md +++ b/docs/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md @@ -63,10 +63,10 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx. server :443 max_fails=3 fail_timeout=5s; } } - - http{ + + http { server { - listen 443 ssl; + listen 443 ssl; proxy_pass rancher_servers_https; ssl_certificate /path/to/tls.crt; ssl_certificate_key /path/to/key.key; @@ -75,10 +75,8 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx. proxy_set_header Host ; proxy_ssl_server_name on; proxy_ssl_name - } } - } ``` diff --git a/versioned_docs/version-2.6/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md b/versioned_docs/version-2.6/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md index e23af0532bc..368c456f9fc 100644 --- a/versioned_docs/version-2.6/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md +++ b/versioned_docs/version-2.6/how-to-guides/new-user-guides/infrastructure-setup/nginx-load-balancer.md @@ -62,11 +62,21 @@ After installing NGINX, you need to update the NGINX configuration file, `nginx. server :443 max_fails=3 fail_timeout=5s; server :443 max_fails=3 fail_timeout=5s; } - server { - listen 443; - proxy_pass rancher_servers_https; - } + } + http { + server { + listen 443 ssl; + proxy_pass rancher_servers_https; + ssl_certificate /path/to/tls.crt; + ssl_certificate_key /path/to/key.key; + location / { + proxy_pass https://rancher_servers_https; + proxy_set_header Host ; + proxy_ssl_server_name on; + proxy_ssl_name + } + } } ```