1、https请求,URL最后有/和无斜杠,对于location来说是一样的。
(1)有/:nginx自动匹配该文件夹下的默认文件,默认为index.html。如果希望修改默认文件,指定index即可。
(2)无/:nginx自动匹配指定文件,如果没有指定的文件,则找再改文件夹下的默认文件。
例1:URL:https://courtfj.com/wisdom_court/
去找的就是【/.well-known】的默认文件【apple-app-site-association】
例2:URL:https://courtfj.com/wisdom_court
去找的就是【/.well-known/apple-app-site-association】文件