при таком локейшине location ^~ /storage/scorm/6059b9a9c4f86033515b314e/scormdriver/ { alias /srv/storage_data/app/public/scorm/6059b9a9c4f86033515b314e/scormdriver/; try_files $uri /indexAPI.html; index indexAPI.html; } [06/Apr/2021:11:29:37 +0000] "GET /storage/scorm/6059b9a9c4f86033515b314e/scormdriver/indexAPI.html HTTP/1.1" 200 2855 "-" "curl/7.58.0" "ip" [/srv/storage_data/app/public/scorm/6059b9a9c4f86033515b314e/scormdriver/] когда меняю на location ^~ /storage/scorm/(.*)/scormdriver/ { alias /srv/storage_data/app/public/scorm/$1/scormdriver/; try_files $uri /indexAPI.html; index indexAPI.html; } то в логах access.log [06/Apr/2021:11:31:47 +0000] "GET /storage/scorm/6059b9a9c4f86033515b314e/scormdriver/indexAPI.html HTTP/1.1" 404 153 "-" "curl/7.58.0" "ip" [/srv/storage_data/app/public/scorm/6059b9a9c4f86033515b314e/scormdriver/] error.log 2021/04/06 11:31:47 [error] 53380#53380: *697488 open() "/srv/app/api_deploy/api/latest/public/self_study/scormcheck" failed (2: No such file or directory), client: 192.168.162.10, server: domain, request: "GET /storage/scorm/6059b9a9c4f86033515b314e/scormdriver/indexAPI.html HTTP/1.1", host: "domain" попадает в другой локейшен
скажи-ка, а файл /srv/storage_data/app/public/scorm/6059b9a9c4f86033515b314e/scormdriver/indexAPI.html он же есть физически?
файл есть ls /srv/storage_data/app/public/scorm/6059b9a9c4f86033515b314e/scormdriver/indexAPI.html /srv/storage_data/app/public/scorm/6059b9a9c4f86033515b314e/scormdriver/indexAPI.html
Обсуждают сегодня