M
M
monyavitevna2017-06-07 10:34:05
Nginx
monyavitevna, 2017-06-07 10:34:05

How to set up a redirect in nginx from a folder to the main one?

How to set up a redirect in nginx from the topligarun.ru/api/login/* folder to the main one?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Kazakov, 2017-06-09
@mausspb

Read the official doc , very detailed and with examples !
The more you ask elementary questions that are answered on the first page of Google, the less you will develop as an expert, so this is useful first of all for you!

D
Dmitri Sinitsa, 2017-06-07
@unabl4

location /api/login/ {
  return 302 http://topligarun.ru;
}

So?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question