nginx redirects all files with or without extensions except a few
How to match all files with or without extension, except those with the extension txt, pdf, jpeg. On my Nginx configuration this downloads all the files without any restriction. location ~ .+(?<!.pdf|.txt|.jpeg)$ { auth_request /auth.php; error_page 401 = @login; }…