H
H
htos2014-11-22 16:39:23
Nginx
htos, 2014-11-22 16:39:23

How to redirect from http to https with exceptions?

Hello
It is necessary to make a redirect from http to https on nginx, but at the same time it is necessary that the links to the pictures be without a redirect. How to put a redirect on the entire site, and make pictures an exception?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2014-11-22
@opium

Make a redirect in the location /
and do not redirect in the location for jpg

S
Stanislav Chernov, 2014-11-24
@uinx

stackoverflow.com/questions/10294481/how-to-redire...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question