diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index 087a8ed..80a7a71 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -56,6 +56,15 @@ server { root /app/public; index index.php; + # make .well-known directory accessible + location ~ /.well-known { + allow all; + + # serve all files in the .well-known directory + # directly without passing the request to the backend + try_files $uri =404; + } + location / { try_files $uri $uri.php $uri/ /index.php$is_args$args; } @@ -88,13 +97,4 @@ server { location = /template.php { deny all; } - - # make .well-known directory accessible - location ~ /.well-known { - allow all; - - # serve all files in the .well-known directory - # directly without passing the request to the backend - try_files $uri =404; - } }