How to set up apple app site association file on aws s3 hosted website

Viewed 7

I have an A record subdomain called sharing.sample.app with no Alias and a simple routing policy on route 53 in AWS. The main website is hosted in S3 and the subdomain just points as stated above. The app developer needs to upload the apple app association file and I have tried uploading the said file on an ubuntu server that the sub-domain points to which is /var/www/html/sharing but when I try to access the file calling the URL https://sharing.sample.app/apple-app-site-association it just reverts me back to https://sharing.sample.app

I then tried to upload the said file to S3 on the public website URL at its root and when I call the URL https://sample.app/spple-app-site-association it downloads the file which shows me that it sees it.

How do I resolve this so that the URL the developer needed to be https://sharing.sample.app/apple-app-site-association resolves and shows what the developer needs to display on the web browser as I tried to validate it on this URL: https://branch.io/resources/aasa-validator/ and I got the following messages as an error:

sample.app – This domain has some validation issues

(GREEN) Congrats! Your domain is valid (valid DNS).

(GREEN) Your file is served over HTTPS. Learn More

(RED) Your server returned an error status code (>= 400). This includes client side and server side errors. Want to know what this means? Click here. Learn More

(AMBER) Content type test did not run. Be sure to define a ‘content-type’ header.

(AMBER) JSON test did not run. Your file should contain valid JSON. Learn More

0 Answers
Related