W
W
Webber2021-01-13 15:57:54
Nginx
Webber, 2021-01-13 15:57:54

How to redirect to a file by format?

There are files on s3 amazon. There are both images and other files.

I want to make an nginx server with the ability to resize images. Resize already done.

Is it possible to make a check: if this is not an image, then do a redirect to Amazon - so as not to load the server and not turn traffic on my server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-01-13
@ky0

You can make a location that works depending on the file extension in the url.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question