T
T
tefoxis2020-04-24 12:17:58
Nginx
tefoxis, 2020-04-24 12:17:58

nginx. How to correctly redirect everyone from the main page, but at the same time allow access to /default.pdf?

Good afternoon.

There is a task to redirect everyone who comes to the main page, but at the same time example.com/default.pdf should be available.
How to do it right?

Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-04-24
@ky0

You make a location /with a redirect and a location = /default.pdfwithout.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question