New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
NGINX keeps looking inside the wrong path?
Hey, I've been stuck on this for a few hours now, just got back to it now. I can't seem to figure out why NGINX keeps looking into:
2022/01/15 10:50:37 [error] 10505#0: *1 open() "/etc/nginx/html/cdn40/test/image_9382.png" failed (2: No such file or directory)
With the configuration:
location ~ ^/cdn40/(.*)/image(.*).png$ {
root /mnt/storage/html/$1/image$2.png;
}
Comments
Figured it out, location was invalid and wasn't matching, then needed to use rewrite to change url without changing the actual url