Header Image -

Monthly Archives

2 Articles

Nginx HTTP-to-HTTPS AND domain.com-to-WWW Redirect Using AWS ELB for SSL Termination

by Jamey 0 Comments
Nginx HTTP-to-HTTPS AND domain.com-to-WWW Redirect Using AWS ELB for SSL Termination

You are running Nginx as a webserver or reverse proxy, and you are terminating SSL on an Amazon Elastic Loadbalancer.

The loadbalancer is passing HTTP traffic from port 80 to HTTP port 80 on your EC2 instance(s).

The loadbalancer is decrypting HTTPS traffic from port 443 and also passing it on to HTTP port 80 on your EC2 instance(s).

You are looking for the following functionality:

http://domain.com => https://www.domain.com
https://domain.com => https://www.domain.com
http://www.domain.com => https://www.domain.com
https://www.domain.com => https://www.domain.com

4 views