title: How to set up apple app site association file on aws s3 hosted website
body: <p>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 <a href="https://sharing.sample.app/apple-app-site-association" rel="nofollow noreferrer">https://sharing.sample.app/apple-app-site-association</a> it just reverts me back to <a href="https://sharing.sample.app" rel="nofollow noreferrer">https://sharing.sample.app</a></p>
  <p>I then tried to upload the said file to S3 on the public website URL at its root and when I call the URL <a href="https://sample.app/spple-app-site-association" rel="nofollow noreferrer">https://sample.app/spple-app-site-association</a> it downloads the file which shows me that it sees it.</p>
  <p>How do I resolve this so that the URL the developer needed to be <a href="https://sharing.sample.app/apple-app-site-association" rel="nofollow noreferrer">https://sharing.sample.app/apple-app-site-association</a> resolves and shows what the developer needs to display on the web browser as I tried to validate it on this URL: <a href="https://branch.io/resources/aasa-validator/" rel="nofollow noreferrer">https://branch.io/resources/aasa-validator/</a> and I got the following messages as an error:</p>
  <p>sample.app – This domain has some validation issues</p>
  <p>(GREEN) Congrats! Your domain is valid (valid DNS).</p>
  <p>(GREEN) Your file is served over HTTPS. Learn More</p>
  <p>(RED) Your server returned an error status code (&gt;= 400). This includes client side and server side errors. Want to know what this means? Click here. Learn More</p>
  <p>(AMBER) Content type test did not run. Be sure to define a ‘content-type’ header.</p>
  <p>(AMBER) JSON test did not run. Your file should contain valid JSON. Learn More</p>