АА
следуйте правилам, у вас второй полностью соответствует, потому в приоритете
Size: a a a
АА
АА
АА
АА
АА
A
if ($request_uri ~ ^/storage/scorm/(.*)$ ) {
set $custom_uri /self_study/scormcheck?patch=;
}
location / {
access_log /var/log/nginx/debug_root.log main;
root $latest;
try_files $uri $uri/ /index.php?_url=$uri&$args;
}
location ~ /storage/scorm/(.*)/scormdriver/ {
access_log /var/log/nginx/debug_scorm.log main;
alias /srv/storage_data/app/public/scorm/$1/scormdriver/;
try_files $uri /indexAPI.html;
index indexAPI.html;
}
location /storage/scorm {
access_log /var/log/nginx/debug_scorm1.log main;
root $latest;
rewrite ^/storage/scorm/(.*)$ self_study/scormcheck?path=$1 break;
}
location /storage {
access_log /var/log/nginx/debug_scorm2.log main;
internal;
alias /srv/storage_data/app/public/;
try_files $uri =404;
}
curl -I -XGET https://example.com/storage/scorm/6059b9a9c4f86033515b314e/scormdriver/indexAPI.html
HTTP/1.1 404 Not Found
Server: nginx
Date: Tue, 06 Apr 2021 16:44:34 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 153
Connection: keep-alive
==> /var/log/nginx/debug_scorm1.log <==
192.168.162.10 - - [06/Apr/2021:16:44:34 +0000] "GET /storage/scorm/6059b9a9c4f86033515b314e/scormdriver/indexAPI.html HTTP/1.1" 404 153 "-" "curl/7.58.0" "ip" [/srv/app/api_deploy/deploy/v7/2103161054/public]
location /storage/scorm {