Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion

NGINX keeps looking inside the wrong path?
New on LowEndTalk? Please Register and read our Community Rules.

NGINX keeps looking inside the wrong path?

sgno1sgno1 Member
edited January 15 in Help

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

  • sgno1sgno1 Member

    Figured it out, location was invalid and wasn't matching, then needed to use rewrite to change url without changing the actual url

Sign In or Register to comment.