The /.well-known/ directory is a standardized location defined by RFC 8615.
It is used to host configuration files and metadata that allow external services (such as mobile app linking, authentication, or security policies) to integrate with the application.
This guide explains how to configure the PWA to serve files from the /.well-known/ directory at the root of a web server.
The AASA (short for apple-app-site-association) is a file that lives on your website and associates your website domain with your native app (see What Is An AASA (apple-app-site-association) File?).
A detailed guide on how to create the apple-app-site-association file can be found at Apple Developer: Supporting Associated Domains.
Save the AASA File
Place the file apple-app-site-association in the nginx folder.
Dockerfile Adaption
Add the following lines to nginx/Dockerfile:
RUN mkdir -p /usr/share/nginx/html/.well-known
COPY apple-app-site-association /usr/share/nginx/html/.well-known/apple-app-site-associationMulti-Channel Configuration
Add the following location block to the nginx/templates/multi-channel.conf.tmpl file within the server block and next to the existing location blocks:
# apple-app-site-association
location = /.well-known/apple-app-site-association {
allow all;
auth_basic off;
default_type application/json;
root /usr/share/nginx/html;
}Note
The auth_basic off; directive ensures that this endpoint remains publicly accessible even when global BASIC_AUTH is enabled for the PWA.
Verify the Configuration
Test the endpoint after deployment:
curl -i https://yourdomain.com/.well-known/apple-app-site-associationThe endpoint should return Content-Type: application/json with the JSON content.
To test the apple-app-site-association file when running the PWA on your local system, you can use the following commands:
docker compose up --build -d
curl -i http://localhost:4200/.well-known/apple-app-site-associationThe information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Website, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.