I have a small problem with redirecting everything from http to https. Here is the setup of my environment:
The server is a docker host which runs multiple docker containers. I'm trying to access a container that listens on port 9000. so I have a ProxyPass in the vhost file that looks like this:
<VirtualHost *:80> ProxyPreserveHost On ServerName subdomain.domain.com ProxyPass / http://localhost:9000/ ProxyPassReverse / http://localhost:9000/ Redirect / https://subdomain.domain.com/ </VirtualHost>
The SSL Certificate is issued by AWS. This server is behind a AWS Load Balancer. From the load balancer I have 2 target groups. One is redirecting 80 to 80, and the other 443 to 443.
Right now the https://subdomain.domain.com is throwing 502 bad gateway error.
Could someone have any idea what the issue here might be? Thanks in advance!