Cloudfront not accessing stream path

0

Dear Community,

I've got some problems setting up a CloudFront distribution. It is supposed to deliver an .mp3 stream.

My external non AWS origin is accessible via its Ip and path 12.34.56.789:8001/mystream.mp3 of course I've set up an DNS record to have a domain as origin. so now it is example.com:8001/mystream.mp3 which works fine without cloudfront.

Now cloudfront works fine to acess the server itself using example.com as the origin and set the port to 8001.

What doesn't work is setting the domain path as "/mystream.mp3" The Browser is returning a "502 The request could not be satisfied." Should I use root object instead or is there something I'm missing?

Thank you in advance

Iggy

TheIggy
posta un anno fa192 visualizzazioni
2 Risposte
0

Hi Iggy,

The 502 response could go multiple directions (if SSL certificates had an issue for example). From what you're describing I would suspect the domain path is what is causing this. This is used to append a directory path to the origin. e.g. if origin domain is example.com and domain path is /testing, this would result in example.com/testing/

Thus I think what Cloudfront might be doing is looking for example.com/mystream.mp3/*

AWS
con risposta un anno fa
0

Hi,

thank you. I really had an issue with the domain. I had both root and path set to the same path. Unfortunately I now get an 404 error. That even makes it feel worse.

BR

TheIggy
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande