Miantian
Miantian

Reputation: 1075

How to set up a reverse proxy server with alb on AWS?

I created a service publish structure as below

enter image description here

I don't know why can't access the domain successfully. Where maybe the issue?


The public LB's listener rules are

enter image description here

Upvotes: 1

Views: 8590

Answers (1)

Dinesh Kumar
Dinesh Kumar

Reputation: 493

You can add HTTP to HTTPS redirect config in the Loadbalancer rule itself. enter image description here

To proxy your HTTPS requests to Applications server

server {
  listen       80 default_server;
  server_name  _;

    location / {
        proxy_pass <internal_loadbalancer_dns_name>;
    }
}

Upvotes: 3

Related Questions