I'm new to Nginx and try to redirect a directory for jpg-files to the root directory. For example the file /abc/jpg.jpg should be opened directly through /jpg.jpg.
rewrite /(.*(jpg|jpeg))$ /directory/$1 last;
This works, but so all jpg files in other directories can't be opened any more. Many greetings
rewrite /(.*(jpg|jpeg))$ /directory/$1 last;
This works, but so all jpg files in other directories can't be opened any more. Many greetings