Whops - cant run apache and node on the same port.
So falling back to an adjustment on the load balancer.
Set the LB to 443 pointing to the ec2.
Ec2 Listing on 443 => proxy redirect to 8080. for Node app.Now I have a healthy status check and
path to the server.
server curl now states:
~ curl -IvkL n-lite.net:8080
* Trying 104.27.185.227…
* TCP_NODELAY set
* Connected to n-lite.net (104.27.185.227) port 8080 (#0)
> HEAD / HTTP/1.1
> Host: n-lite.net:8080
> User-Agent: curl/7.64.1
> Accept: **
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
HTTP/2 200
< date: Wed, 16 Sep 2020 20:42:27 GMT
date: Wed, 16 Sep 2020 20:42:27 GMT
< content-type: text/html
content-type: text/html
< set-cookie: __cfduid=dba6e2a599967c46183d6aeaf55bcb02e1600288946; expires=Fri, 16-Oct-20 20:42:26 GMT; path=/; domain=.n-lite.net; HttpOnly; SameSite=Lax; Secure
set-cookie: __cfduid=dba6e2a599967c46183d6aeaf55bcb02e1600288946; expires=Fri, 16-Oct-20 20:42:26 GMT; path=/; domain=.n-lite.net; HttpOnly; SameSite=Lax; Secure
< last-modified: Thu, 10 Sep 2020 17:38:22 GMT
last-modified: Thu, 10 Sep 2020 17:38:22 GMT
< vary: Accept-Encoding
vary: Accept-Encoding
< x-cache: Hit from cloudfront
x-cache: Hit from cloudfront
< via: 1.1 f9d716a351f14a0ac1fac2449734849b.cloudfront.net (CloudFront)
via: 1.1 f9d716a351f14a0ac1fac2449734849b.cloudfront.net (CloudFront)
< x-amz-cf-pop: SEA19-C2
x-amz-cf-pop: SEA19-C2
< x-amz-cf-id: HkMcqz_l_aCuFPsU7Sdx49beXl4FwHzTcwdPwW3G_PiJE9i2xC_2WQ==
x-amz-cf-id: HkMcqz_l_aCuFPsU7Sdx49beXl4FwHzTcwdPwW3G_PiJE9i2xC_2WQ==
< age: 37324
age: 37324
< cf-cache-status: DYNAMIC
cf-cache-status: DYNAMIC
< cf-request-id: 053a409282000024a092bb5200000001
cf-request-id: 053a409282000024a092bb5200000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< server: cloudflare
server: cloudflare
< cf-ray: 5d3d69fd98f024a0-IAD
cf-ray: 5d3d69fd98f024a0-IAD
<
* Connection #1 to host n-lite.net left intact
* Closing connection 0
* Closing connection 1
GOOD PROGRESS
unfortunately something is still missing in the configuration:
The application still gets a 500 error message.