V
V
Vadimqa2020-02-24 07:35:10
Nginx
Vadimqa, 2020-02-24 07:35:10

Nginx is serving static. How to add an exception for one specific file in nginx.conf?

Nginx is front
location ~* \.(png|txt|jpg|...)$ {...}
How to make it pass only robots.txt to Apache? And the rest of the .txt files processed in the normal mode

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2020-02-24
@Vadimqa

Create a location for robots.txt, configure proxying in it and raise it in the configuration file above location for all txt files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question