nginx directive for /.well-known/apple-app-site-association

Discussion in 'General' started by Hbod, Dec 19, 2019.

  1. Hbod

    Hbod Member

    Hi,
    in order to activate universal links in my developed app, I have to add a specific file (without extension) at the .well-known path.
    When I try to call it, I receive a 403 forbidden.

    I tried a bunch of allow all; directives for this path but I can't get rid of this. Anybody a clue how I can make this specific file available? I think something related to Let's encrypt (which is also running) is blocking. Thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Just as an example, this is what ISPConfig uses for the Let's encrypt auth:

    Code:
    ## Allow access for .well-known/acme-challenge
            location ^~ /.well-known/acme-challenge/ {
                access_log off;
                log_not_found off;
                auth_basic off;
                root /usr/local/ispconfig/interface/acme/;
                autoindex off;
                index index.html;
                try_files $uri $uri/ =404;
            }
     
    ahrasis likes this.
  3. Hbod

    Hbod Member

    Perfect @till thank you. That worked!

    Code:
            location ^~ /.well-known/apple-app-site-association {
                access_log off;
                log_not_found off;
                auth_basic off;
                autoindex off;
                index index.html;
                try_files $uri $uri/ =404;
            }
     
    ahrasis and till like this.

Share This Page