Configure WampServer3 to work with AWS Certificate Manager, balancing application load on port 443

Question:

Can I use WampServer3 (Apache, PHP, MySQL) to work with my application load balancer on port 443? If so, how?

Question:

Currently, my load balancer is connecting to my instance, and I have 2 listeners, port 80 and port 443. The listener on port 443 has an SSL certificate attached to it that was generated by the AWS certificate manager.

  • My target group, which is listening on port 80, is up and running.
  • My target group, which listens on port 443, is unhealthy and timed.

I know that port 443 fails due to Apache settings, but I'm not sure how I should enable the port in Apache.

, , Apache , SSL, 443. , WampServer3 .

, , . , , , .

TL;DR: SSL, AWS, , Apache Windows 10 ?

, , Rewrite <VirtualHost>

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule .* https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]

X-Forwarded-Proto: https healthcheck.php <html>? , .

+4
2

AWS - , , .

, SSL- - LetsEncrypt. - . , , .

0

80 443 . 443 ACM.

, - 80, , 443, .

. , , 443, ALB HTTP. , , .

, - , , , 80 443.

443, apache, , . SSL ALB, X-Forwarded (. this) , X -Forward-Port - 80.

, 443 80. , , Linux . ALB .

Edit:

, :

RewriteEngine On 
RewriteCond %{HTTP:X-Forwarded-Proto} =http 
RewriteRule .* https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent] 

, . 80 443, , 80.

+2

Source: https://habr.com/ru/post/1692933/


All Articles