Skip to content

Instantly share code, notes, and snippets.

@3zzy
Created April 7, 2017 18:17
Show Gist options
  • Save 3zzy/9ac91c76828d21cb910cff37d6c6abd5 to your computer and use it in GitHub Desktop.
Save 3zzy/9ac91c76828d21cb910cff37d6c6abd5 to your computer and use it in GitHub Desktop.
#nginx config for apple pay domain verification
location /.well-known/apple-developer-merchantid-domain-association {
allow all;
autoindex on;
root /var/www/example.com/html;
add_header Content-Type text/plain;
}
@jsoneaday
Copy link

Do you know how to get this working in a react app? I get 404 unless I do ctrl f5

@c80609a
Copy link

c80609a commented Aug 19, 2023

Do you know how to get this working in a react app? I get 404 unless I do ctrl f5

I did this building the react app and used this:

  location /payment/stripe_form/ {
    index index.html;
    alias /usr/src/app/frontend/stripe_form/build/;
  }

@radiolondra
Copy link

radiolondra commented Nov 15, 2023

This works for me:

location ^~ /.well-known/ {
                alias /var/www/yourdomain.com/html/;
                index apple-developer-merchantid-domain-association;
                autoindex on;
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment