H
H
hellohelpme2020-08-08 10:56:12
Nginx
hellohelpme, 2020-08-08 10:56:12

How to redirect to https, but not from all domains?

I have an nginx server, I need to make it so that if I come from site.ru or site.ru I would be transferred to https://site.ru ,
but if I come from the site1.ru mirror, I was not transferred anywhere. They said what can be done through http_referer, but I can’t catch up with how, unfortunately I didn’t find any examples.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question