Home > other >  Turn a great god... About AWS ELB
Turn a great god... About AWS ELB

Time:09-30

Ask you for help,,,, two questions:
The first is whether the ELB can do specific URL (such as/demo) request from 80 to 443 ports, forcing the SSL?
The second is whether the ELB may be determined according to the request of the domain name of load balancing strategy?

The great god replied enthusiastically, trouble,, I have no points, this,

CodePudding user response:

The aws seems not support url load strategy -
Didn't understand your case 1, consider ELB add port 443, directly under the open instance of port 443
If you need to another 443 a separate server, test need to add new ELB, listen on port 443

CodePudding user response:

Can you don't brag?

CodePudding user response:

1. The Nginx
Server {
listen 80;
.
The location/{
If ($http_x_forwarded_proto! )='HTTPS' {
Rewrite ^ https://$host$request_uri? Permanent;
}
.
}
}

CodePudding user response:

2. The Apache
.
RewriteEngine On
The RewriteCond % {HTTP: X - Forwarded - Proto}! HTTPS
RewriteRule ^. * ${https://% SERVER_NAME} % {REQUEST_URI}
.

CodePudding user response:

X - FORWARDED - the meaning of the PROTO is HTTPS,,
  •  Tags:  
  • AWS
  • Related