Re: How to redirect to https when using load balancer in front of nginx

2019-09-06 Thread Palvelin Postmaster
> On 4 Sep 2019, at 18.32, j94305 wrote: > > On the other hand, why do you need the ALB if you have an NGINX in there, > anyway? I would rather settle for a simple NLB and handle http/https > redirections etc. in the NGINX itself. Is it possible to terminate SSL at NLB with multiple certificat

Re: How to redirect to https when using load balancer in front of nginx

2019-09-05 Thread Palvelin Postmaster
> On 4 Sep 2019, at 18.32, j94305 wrote: > > In order to redirect http to https, you have to define a listener rule in > the ALB that redirects all traffic on port 80 to port 443 (of the ALB) with > the original path and query parameters. The status code should be a 301 > (permanent redirectio

Re: How to redirect to https when using load balancer in front of nginx

2019-09-04 Thread j94305
In order to redirect http to https, you have to define a listener rule in the ALB that redirects all traffic on port 80 to port 443 (of the ALB) with the original path and query parameters. The status code should be a 301 (permanent redirection). That's the context between the client and the ALB.

How to redirect to https when using load balancer in front of nginx

2019-09-04 Thread Palvelin Postmaster
I have AWS ALB in front of an instance running nginx. I want to terminate https at the load balancer. I have setup ALB's http listener to redirect http to https and forward https to the instance’s port 80. I’m switching from using apache to nginx. My apache currently responds on a single port

How to redirect to https when using load balancer in front of nginx

2019-09-04 Thread Palvelin Postmaster
I have AWS ALB in front of an instance running nginx. I want to terminate https at the load balancer. I have setup ALB's http listener to redirect http to https and forward https to the instance’s port 80. I’m switching from using apache2 to nginx. My apache responds on a single port 80. In my